feat():实体类更新
parent
3c64db595a
commit
4f209fd027
|
@ -59,6 +59,10 @@ public class RuleData extends BaseEntity {
|
||||||
* 规则状态
|
* 规则状态
|
||||||
*/
|
*/
|
||||||
private String ruleStatus;
|
private String ruleStatus;
|
||||||
|
/**
|
||||||
|
* 规则描述
|
||||||
|
*/
|
||||||
|
private String ruleDescribe;
|
||||||
|
|
||||||
public static RuleData updBuild(RuleDataUpdReq ruleDataUpdReq, Supplier<Long> idSupplier) {
|
public static RuleData updBuild(RuleDataUpdReq ruleDataUpdReq, Supplier<Long> idSupplier) {
|
||||||
return RuleData.builder()
|
return RuleData.builder()
|
||||||
|
@ -70,6 +74,7 @@ public class RuleData extends BaseEntity {
|
||||||
.ruleCoding(ruleDataUpdReq.getRuleCoding())
|
.ruleCoding(ruleDataUpdReq.getRuleCoding())
|
||||||
.ruleActivate(ruleDataUpdReq.getRuleActivate())
|
.ruleActivate(ruleDataUpdReq.getRuleActivate())
|
||||||
.ruleStatus(ruleDataUpdReq.getRuleStatus())
|
.ruleStatus(ruleDataUpdReq.getRuleStatus())
|
||||||
|
.ruleDescribe(ruleDataUpdReq.getRuleDescribe())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -81,6 +86,7 @@ public class RuleData extends BaseEntity {
|
||||||
.ruleCoding(ruleDataAddReq.getRuleCoding())
|
.ruleCoding(ruleDataAddReq.getRuleCoding())
|
||||||
.ruleActivate(ruleDataAddReq.getRuleActivate())
|
.ruleActivate(ruleDataAddReq.getRuleActivate())
|
||||||
.ruleStatus(ruleDataAddReq.getRuleStatus())
|
.ruleStatus(ruleDataAddReq.getRuleStatus())
|
||||||
|
.ruleDescribe(ruleDataAddReq.getRuleDescribe())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -70,5 +70,10 @@ public class RuleDataAddReq {
|
||||||
@Schema(title = "接口开通状态" , type = "String" , defaultValue = "Y",
|
@Schema(title = "接口开通状态" , type = "String" , defaultValue = "Y",
|
||||||
description = "状态为Y和N,如果为Y则客户可以使用接口规则,若为N则客户不可以使用接口规则")
|
description = "状态为Y和N,如果为Y则客户可以使用接口规则,若为N则客户不可以使用接口规则")
|
||||||
private String ruleStatus;
|
private String ruleStatus;
|
||||||
|
/**
|
||||||
|
* 规则描述
|
||||||
|
*/
|
||||||
|
@Schema(description = "规则描述",type = "String")
|
||||||
|
private String ruleDescribe;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -75,5 +75,10 @@ public class RuleDataUpdReq {
|
||||||
@Schema(title = "接口开通状态" , type = "String" , defaultValue = "Y",
|
@Schema(title = "接口开通状态" , type = "String" , defaultValue = "Y",
|
||||||
description = "状态为Y和N,如果为Y则客户可以使用接口规则,若为N则客户不可以使用接口规则")
|
description = "状态为Y和N,如果为Y则客户可以使用接口规则,若为N则客户不可以使用接口规则")
|
||||||
private String ruleStatus;
|
private String ruleStatus;
|
||||||
|
/**
|
||||||
|
* 规则描述
|
||||||
|
*/
|
||||||
|
@Schema(description = "规则描述",type = "String")
|
||||||
|
private String ruleDescribe;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -78,6 +78,8 @@ public class RuleDataResp {
|
||||||
.ruleName(ruleData.getRuleName())
|
.ruleName(ruleData.getRuleName())
|
||||||
.ruleType(ruleData.getRuleType())
|
.ruleType(ruleData.getRuleType())
|
||||||
.ruleRegion(ruleData.getRuleRegion())
|
.ruleRegion(ruleData.getRuleRegion())
|
||||||
|
.ruleCoding(ruleData.getRuleCoding())
|
||||||
|
.ruleActivate(ruleData.getRuleActivate())
|
||||||
.ruleStatus(ruleData.getRuleStatus())
|
.ruleStatus(ruleData.getRuleStatus())
|
||||||
.build();
|
.build();
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,7 @@ public class RuleDataController {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
* 添加接口规则
|
||||||
* @param ruleDataAddReq
|
* @param ruleDataAddReq
|
||||||
* @return
|
* @return
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue