Node增删改查

master
Cui YongXing 2024-08-25 19:10:04 +08:00
parent a6e3cd22bd
commit d19ee1a9ff
4 changed files with 24 additions and 2 deletions

View File

@ -22,9 +22,13 @@ import java.util.function.Supplier;
public class Node extends BaseEntity {
/**
* id
* id
*/
private Integer id;
/**
* id
*/
private Integer nodeId;
/**
*
@ -69,6 +73,7 @@ public class Node extends BaseEntity {
public static NodeResp build(Node node) {
return NodeResp.builder()
.id(node.id)
.nodeId(node.nodeId)
.nodeName(node.nodeName)
.taskId(node.taskId)
.databaseId(node.databaseId)
@ -82,6 +87,7 @@ public class Node extends BaseEntity {
public static Node addBuild(NodeAddReq req) {
return Node.builder()
.nodeId(req.getNodeId())
.nodeName(req.getNodeName())
.taskId(req.getTaskId())
.databaseId(req.getDatabaseId())
@ -95,6 +101,7 @@ public class Node extends BaseEntity {
public static Node updBuild(NodeUpdReq req, Supplier<Integer> id) {
return Node.builder()
.id(id.get())
.nodeId(req.getNodeId())
.nodeName(req.getNodeName())
.taskId(req.getTaskId())
.databaseId(req.getDatabaseId())

View File

@ -12,6 +12,12 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor
@Tag(name = "节点添加请求对象" )
public class NodeAddReq {
/**
* id
*/
private Integer nodeId;
/**
*
*/

View File

@ -12,6 +12,11 @@ import lombok.NoArgsConstructor;
@AllArgsConstructor
@Tag(name = "节点添加请求对象" )
public class NodeUpdReq {
/**
* id
*/
private Integer nodeId;
/**
*
*/

View File

@ -14,9 +14,13 @@ import lombok.NoArgsConstructor;
public class NodeResp {
/**
* id
* id
*/
private Integer id;
/**
* id
*/
private Integer nodeId;
/**
*