|
@@ -9,10 +9,9 @@ import io.swagger.annotations.Api;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import io.swagger.annotations.ApiOperation;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import lombok.extern.slf4j.Slf4j;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
-import org.springframework.web.bind.annotation.PostMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestBody;
|
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
-import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.*;
|
|
|
|
+
|
|
|
|
+import java.util.List;
|
|
|
|
|
|
@Api(tags ="通知")
|
|
@Api(tags ="通知")
|
|
@Slf4j
|
|
@Slf4j
|
|
@@ -25,9 +24,26 @@ public class NoticeController {
|
|
NoticeService noticeService;
|
|
NoticeService noticeService;
|
|
|
|
|
|
@ApiOperation("分页列表")
|
|
@ApiOperation("分页列表")
|
|
- @PostMapping("/getList")
|
|
|
|
- public ReturnMsg getList(@RequestBody NoticeParam noticeParam){
|
|
|
|
-
|
|
|
|
|
|
+ @PostMapping("/getNoticeList")
|
|
|
|
+ public ReturnMsg getNoticeList(@RequestBody NoticeParam noticeParam){
|
|
return noticeService.listPage(noticeParam);
|
|
return noticeService.listPage(noticeParam);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ @ApiOperation("通知设为已读")
|
|
|
|
+ @PostMapping("/readNotice")
|
|
|
|
+ public ReturnMsg readNotice(@RequestBody List<Integer> ids){
|
|
|
|
+ return noticeService.readNotice(ids);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("删除通知")
|
|
|
|
+ @PostMapping("/delNotice")
|
|
|
|
+ public ReturnMsg delNotice(@RequestBody List<Integer> ids){
|
|
|
|
+ return noticeService.delNotice(ids);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ @ApiOperation("查看通知")
|
|
|
|
+ @GetMapping("/getNotice")
|
|
|
|
+ public ReturnMsg getNotice(@RequestParam Integer id){
|
|
|
|
+ return noticeService.getNotice(id);
|
|
|
|
+ }
|
|
}
|
|
}
|