文件名从 assess-admin/src/main/java/com/gkhy/assess/admin/controller/SysNoticeController.java 修改 |
| | |
| | | package com.gkhy.assess.admin.controller; |
| | | package com.gkhy.assess.admin.controller.web; |
| | | |
| | | import com.gkhy.assess.common.annotation.RepeatSubmit; |
| | | import com.gkhy.assess.common.api.CommonResult; |
| | | import com.gkhy.assess.system.domain.SysNotice; |
| | | import com.gkhy.assess.system.service.SysNoticeService; |
| | |
| | | return CommonResult.success(noticeService.getNoticeById(noticeId)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @ApiOperation(value = "新增通知") |
| | | @PostMapping("/addNotice") |
| | |
| | | } |
| | | |
| | | |
| | | @RepeatSubmit |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @ApiOperation(value = "编辑通知") |
| | | @PutMapping("/editNotice") |
| | |
| | | } |
| | | |
| | | |
| | | @RepeatSubmit |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @ApiOperation(value = "删除通知") |
| | | @PutMapping("/remove/{noticeId}") |
| | | @DeleteMapping("/remove/{noticeId}") |
| | | public CommonResult removeNotice(@PathVariable(name = "noticeId")Long noticeId){ |
| | | return CommonResult.success(noticeService.deleteNoticeById(noticeId)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @RequiresPermissions("system:assess:monitor") |
| | | @ApiOperation(value = "通知状态修改,停用/启用") |
| | | @PostMapping("/changeStatus") |
| | | public CommonResult changeStatus(SysNotice notice) |
| | | public CommonResult changeStatus(@RequestBody SysNotice notice) |
| | | { |
| | | return CommonResult.success(noticeService.changeNoticeStatus(notice)); |
| | | } |