feat:(REQ-3167) 增加端是否允许删除
This commit is contained in:
parent
f5af6719df
commit
3dd5b4d130
@ -65,5 +65,10 @@ public class TerminalConfigRes {
|
||||
* DISABLED,ENABLED
|
||||
*/
|
||||
private String status;
|
||||
|
||||
/**
|
||||
* 是否允许删除
|
||||
*/
|
||||
private Boolean allowDelete;
|
||||
}
|
||||
}
|
||||
|
||||
@ -31,4 +31,9 @@ public class TerminalRes {
|
||||
* 是否允许克隆
|
||||
*/
|
||||
private Boolean allowClone;
|
||||
|
||||
/**
|
||||
* 是否允许删除
|
||||
*/
|
||||
private Boolean allowDelete;
|
||||
}
|
||||
|
||||
@ -112,6 +112,9 @@ public class TerminalController implements TerminalApi {
|
||||
.allowClone(Optional.ofNullable(terminalBizType)
|
||||
.map(TerminalConfigRes.TerminalBizType::getAllowClone)
|
||||
.orElse(false))
|
||||
.allowDelete(Optional.ofNullable(terminalBizType)
|
||||
.map(TerminalConfigRes.TerminalBizType::getAllowDelete)
|
||||
.orElse(false))
|
||||
.featureType(e.getFeatureType())
|
||||
.build();
|
||||
})
|
||||
|
||||
Loading…
Reference in New Issue
Block a user