| | |
| | | |
| | | import com.sandu.common.domain.ResponseVO; |
| | | import com.sandu.common.object.BaseConditionVO; |
| | | import com.sandu.common.security.annotation.AnonymousAccess; |
| | | import com.sandu.common.util.ResponseUtil; |
| | | import com.sandu.ximon.admin.dto.LightTaskDto; |
| | | import com.sandu.ximon.admin.param.LightTaskDelParam; |
| | |
| | | if (!permissionConfig.check(MenuEnum.LIGHT_TASK_ADD.getCode())) { |
| | | return ResponseUtil.fail("缺少对应用户权限"); |
| | | } |
| | | boolean result = lightTaskService.addLightTask(param); |
| | | if (result) { |
| | | return ResponseUtil.success("新增成功"); |
| | | } else { |
| | | return ResponseUtil.fail("新增失败"); |
| | | } |
| | | return ResponseUtil.success(lightTaskService.newAddLightTask(param)); |
| | | } |
| | | |
| | | |
| | | @GetMapping("/list") |
| | | public ResponseVO<Object> listLightTask(BaseConditionVO conditionVO, |
| | | @RequestParam(value = "keyword", required = false) String keyword, |