feat:(REQ-3167) 增加端是否允许删除

This commit is contained in:
李龙 2024-12-09 11:10:17 +08:00
parent f5af6719df
commit 3dd5b4d130
3 changed files with 13 additions and 0 deletions

View File

@ -65,5 +65,10 @@ public class TerminalConfigRes {
* DISABLED,ENABLED * DISABLED,ENABLED
*/ */
private String status; private String status;
/**
* 是否允许删除
*/
private Boolean allowDelete;
} }
} }

View File

@ -31,4 +31,9 @@ public class TerminalRes {
* 是否允许克隆 * 是否允许克隆
*/ */
private Boolean allowClone; private Boolean allowClone;
/**
* 是否允许删除
*/
private Boolean allowDelete;
} }

View File

@ -112,6 +112,9 @@ public class TerminalController implements TerminalApi {
.allowClone(Optional.ofNullable(terminalBizType) .allowClone(Optional.ofNullable(terminalBizType)
.map(TerminalConfigRes.TerminalBizType::getAllowClone) .map(TerminalConfigRes.TerminalBizType::getAllowClone)
.orElse(false)) .orElse(false))
.allowDelete(Optional.ofNullable(terminalBizType)
.map(TerminalConfigRes.TerminalBizType::getAllowDelete)
.orElse(false))
.featureType(e.getFeatureType()) .featureType(e.getFeatureType())
.build(); .build();
}) })