This commit is contained in:
dute7liang
2024-01-27 20:12:55 +08:00
parent d0a53c31a5
commit 716b2a2d7a
7 changed files with 92 additions and 8 deletions

View File

@@ -0,0 +1,14 @@
package com.ruoyi.cai.enums.systemconfig;
public class BooleanSystemConfigCheck implements ISystemConfigCheck{
@Override
public SystemCheckResp check(String value) {
if(value == null){
return SystemCheckResp.fail("该配置必填");
}
if(!value.equals("1") && !value.equals("0")){
return SystemCheckResp.fail("请填写1或者0【1表示确定0表示否定】");
}
return SystemCheckResp.ok();
}
}