|
@@ -1,17 +1,18 @@
|
|
|
package com.diagbot.web;
|
|
|
|
|
|
|
|
|
-import com.baomidou.dynamic.datasource.annotation.DSTransactional;
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
import com.diagbot.annotation.SysLogger;
|
|
|
import com.diagbot.dto.KlRuleByIdParDTO;
|
|
|
import com.diagbot.dto.KlRuleInfoDTO;
|
|
|
import com.diagbot.dto.RespDTO;
|
|
|
+import com.diagbot.enums.StatusEnum;
|
|
|
import com.diagbot.facade.KlRuleFacade;
|
|
|
import com.diagbot.vo.KlRuleByIdVO;
|
|
|
import com.diagbot.vo.KlRuleInfoClearVO;
|
|
|
import com.diagbot.vo.KlRuleInfoSaveVO;
|
|
|
import com.diagbot.vo.KlRuleInfoVO;
|
|
|
+import com.diagbot.vo.KlRuleSatartOrdisaVO;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -70,4 +71,18 @@ public class KlRuleController {
|
|
|
return RespDTO.onSuc(klRuleFacade.clearRuleInfos(klRuleInfoClearVO));
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "停用规则[by:wangfeng]")
|
|
|
+ @PostMapping("/disableRuleInfo")
|
|
|
+ @SysLogger("disableRuleInfo")
|
|
|
+ public RespDTO<Boolean> disableRuleInfos(@RequestBody @Valid KlRuleSatartOrdisaVO klRuleSatartOrdisaVO) {
|
|
|
+ return RespDTO.onSuc(klRuleFacade.startOrDisableRule(klRuleSatartOrdisaVO,StatusEnum.Disable.getKey()));
|
|
|
+ }
|
|
|
+
|
|
|
+ @ApiOperation(value = "启用规则[by:wangfeng]")
|
|
|
+ @PostMapping("/startRuleInfo")
|
|
|
+ @SysLogger("startRuleInfo")
|
|
|
+ public RespDTO<Boolean> startRuleInfos(@RequestBody @Valid KlRuleSatartOrdisaVO klRuleSatartOrdisaVO) {
|
|
|
+ return RespDTO.onSuc(klRuleFacade.startOrDisableRule(klRuleSatartOrdisaVO,StatusEnum.Enable.getKey()));
|
|
|
+ }
|
|
|
+
|
|
|
}
|