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