| | |
| | | |
| | | import com.ruoyi.common.core.domain.R; |
| | | import com.ruoyi.system.api.domain.dto.MgtBaseBathDto; |
| | | import com.ruoyi.system.api.domain.dto.MgtClassNumDto; |
| | | import com.ruoyi.system.api.domain.dto.MgtUserIdByDept; |
| | | import com.ruoyi.system.api.domain.poji.config.Activeness; |
| | | import com.ruoyi.system.api.domain.poji.config.DelayTask; |
| | | import com.ruoyi.system.api.domain.poji.config.SysClassification; |
| | | import com.ruoyi.system.api.domain.poji.config.SysTag; |
| | | import com.ruoyi.system.api.domain.vo.AppOtherConfigGetVo; |
| | | import com.ruoyi.system.api.domain.vo.MgtSysSimpleUserVo; |
| | | import com.ruoyi.system.service.config.ActivenessService; |
| | | import com.ruoyi.system.service.config.SysClassificationService; |
| | | import com.ruoyi.system.service.config.SysTagService; |
| | | import com.ruoyi.system.service.config.*; |
| | | import com.ruoyi.system.service.sys.ISysUserService; |
| | | import org.springframework.web.bind.annotation.PostMapping; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | |
| | | @Resource |
| | | private ISysUserService sysUserService; |
| | | |
| | | @Resource |
| | | private DelayTaskService delayTaskService; |
| | | |
| | | @Resource |
| | | private CustomConfigService customConfigService; |
| | | |
| | | |
| | | /** |
| | |
| | | return R.ok(sysSimpleUserVoList); |
| | | } |
| | | |
| | | /** |
| | | * @description 通过名称获取活跃度 |
| | | * @author jqs |
| | | * @date 2023/6/29 17:20 |
| | | * @param name |
| | | * @return R<Activeness> |
| | | */ |
| | | @PostMapping("/getActivenessByName") |
| | | public R<Activeness> getActivenessByName(@RequestBody String name) |
| | | { |
| | | Activeness activeness = activenessService.getActivenessByName(name); |
| | | return R.ok(activeness); |
| | | } |
| | | |
| | | @PostMapping("/getDelayTask") |
| | | public R<DelayTask> getDelayTask(@RequestBody String key) |
| | | { |
| | | DelayTask delayTask = delayTaskService.getDelayTask(key); |
| | | return R.ok(delayTask); |
| | | } |
| | | |
| | | @PostMapping("/addDelayTask") |
| | | public R addDelayTask(@RequestBody DelayTask delayTask) |
| | | { |
| | | delayTaskService.addDelayTask(delayTask); |
| | | return R.ok(); |
| | | } |
| | | |
| | | @PostMapping("/deleteDelayTask") |
| | | public R deleteDelayTask(@RequestBody String key) |
| | | { |
| | | delayTaskService.deleteDelayTask(key); |
| | | return R.ok(); |
| | | } |
| | | |
| | | /** |
| | | * @description 获取其他设置 |
| | | * @author jqs |
| | | * @date 2023/7/12 15:27 |
| | | * @param |
| | | * @return R<AppOtherConfigGetVo> |
| | | */ |
| | | @PostMapping("/getAppOtherConfigGetVo") |
| | | public R<AppOtherConfigGetVo> getAppOtherConfigGetVo() |
| | | { |
| | | AppOtherConfigGetVo appOtherConfigGetVo = customConfigService.getAppOtherConfigGetVo(); |
| | | return R.ok(appOtherConfigGetVo); |
| | | } |
| | | |
| | | /** |
| | | * @description 改变分类数量 |
| | | * @author jqs |
| | | * @date 2023/7/20 20:06 |
| | | * @param mgtClassNumDto |
| | | * @return R |
| | | */ |
| | | @PostMapping("/changeClassNum") |
| | | public R changeClassNum(@RequestBody MgtClassNumDto mgtClassNumDto) |
| | | { |
| | | sysClassificationService.changeClassNum(mgtClassNumDto); |
| | | return R.ok(); |
| | | } |
| | | } |