| | |
| | | package com.gkhy.exam.admin.system; |
| | | |
| | | import com.gkhy.exam.common.annotation.Log; |
| | | import com.gkhy.exam.common.annotation.RepeatSubmit; |
| | | import com.gkhy.exam.common.api.CommonResult; |
| | | import com.gkhy.exam.common.enums.BusinessType; |
| | | import com.gkhy.exam.system.domain.SysNotice; |
| | |
| | | } |
| | | |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "通知公告", businessType = BusinessType.INSERT) |
| | | @ApiOperation(value = "新增通知公告") |
| | | @PostMapping |
| | |
| | | return CommonResult.success(noticeService.insertNotice(notice)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "通知公告", businessType = BusinessType.UPDATE) |
| | | @ApiOperation(value = "修改通知公告") |
| | | @PutMapping |
| | |
| | | return CommonResult.success(noticeService.updateNotice(notice)); |
| | | } |
| | | |
| | | @RepeatSubmit |
| | | @Log(title = "通知公告", businessType = BusinessType.DELETE) |
| | | @ApiOperation(value = "删除通知公告") |
| | | @DeleteMapping("/{noticeIds}") |