修改分页条数
parent
d1f9f7345e
commit
6304311b9b
|
@ -0,0 +1,22 @@
|
||||||
|
package com.muyu.common.domian;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.annotation.TableName;
|
||||||
|
import lombok.AllArgsConstructor;
|
||||||
|
import lombok.Builder;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.NoArgsConstructor;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@Builder
|
||||||
|
@AllArgsConstructor
|
||||||
|
@NoArgsConstructor
|
||||||
|
@TableName(value = "node_rule")
|
||||||
|
public class NodeRule {
|
||||||
|
|
||||||
|
private Long id;
|
||||||
|
private Long nodeId;
|
||||||
|
private Long tasKId;
|
||||||
|
private Long ruleId;
|
||||||
|
private String config;
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,27 @@
|
||||||
|
package com.muyu.task.server.controller;
|
||||||
|
|
||||||
|
import com.muyu.common.core.domain.Result;
|
||||||
|
import com.muyu.common.domian.NodeRule;
|
||||||
|
import com.muyu.task.server.service.NodeRuleService;
|
||||||
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
|
import org.springframework.web.bind.annotation.PostMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RequestBody;
|
||||||
|
import org.springframework.web.bind.annotation.RequestMapping;
|
||||||
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
|
@RestController
|
||||||
|
@RequestMapping("nodeRule")
|
||||||
|
public class NodeRuleController {
|
||||||
|
|
||||||
|
@Autowired
|
||||||
|
private NodeRuleService nodeRuleService;
|
||||||
|
|
||||||
|
|
||||||
|
@PostMapping("addNodeRule")
|
||||||
|
public Result addNodeRule(@RequestBody NodeRule nodeRule) {
|
||||||
|
boolean save = nodeRuleService.save(nodeRule);
|
||||||
|
return Result.success(save);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,9 @@
|
||||||
|
package com.muyu.task.server.mapper;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
||||||
|
import com.muyu.common.domian.NodeRule;
|
||||||
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
|
|
||||||
|
@Mapper
|
||||||
|
public interface NodeRuleMapper extends BaseMapper<NodeRule> {
|
||||||
|
}
|
|
@ -0,0 +1,8 @@
|
||||||
|
package com.muyu.task.server.service;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.IService;
|
||||||
|
import com.muyu.common.domian.NodeRule;
|
||||||
|
|
||||||
|
|
||||||
|
public interface NodeRuleService extends IService<NodeRule> {
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
package com.muyu.task.server.service.impl;
|
||||||
|
|
||||||
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
||||||
|
import com.muyu.common.domian.NodeRule;
|
||||||
|
import com.muyu.task.server.mapper.NodeRuleMapper;
|
||||||
|
import com.muyu.task.server.service.NodeRuleService;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
|
@Service
|
||||||
|
public class NodeRuleServiceImpl extends ServiceImpl<NodeRuleMapper, NodeRule> implements NodeRuleService {
|
||||||
|
}
|
Loading…
Reference in New Issue