|
@@ -10,6 +10,7 @@ import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
|
|
|
+import org.springframework.web.bind.annotation.RequestParam;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.bind.annotation.RestController;
|
|
|
|
|
@@ -32,19 +33,28 @@ public class VnoticeUserController {
|
|
|
|
|
|
/**
|
|
|
* 消息通知列表
|
|
|
- * 默认显示五条的参数:token 登陆者的用户凭证,flag = 0,(默认显示最近五条)
|
|
|
- * 查看全部时传的参数:token 登陆者的用户凭证,flag = 0,pageNum 当前页码,pageSize 每页条数,
|
|
|
- * (筛选字段:notice_type 0-审批,1-告警,2-保养)(默认不传)
|
|
|
+ * 默认显示五条的参数:token 登陆者的用户凭证,
|
|
|
+ * 查看全部时传的参数:token 登陆者的用户凭证,pageNum 当前页码,pageSize 每页条数,
|
|
|
* @return
|
|
|
*/
|
|
|
@ApiOperation("消息通知列表")
|
|
|
@RequestMapping("/list")
|
|
|
@ResponseBody
|
|
|
- public HttpRespMsg deleteRole(HttpServletRequest request, String token,
|
|
|
+ public HttpRespMsg list(HttpServletRequest request, String token,
|
|
|
HttpServletResponse response, PageUtil page, Integer flag) {
|
|
|
HttpRespMsg msg = new HttpRespMsg();
|
|
|
msg = vnoticeUserService.pageList(page, token);
|
|
|
return msg;
|
|
|
}
|
|
|
+
|
|
|
+ @ApiOperation("消息通知列表")
|
|
|
+ @RequestMapping("/read")
|
|
|
+ @ResponseBody
|
|
|
+ public HttpRespMsg read(@RequestParam Integer id,
|
|
|
+ HttpServletResponse response) {
|
|
|
+ HttpRespMsg msg = new HttpRespMsg();
|
|
|
+ msg = vnoticeUserService.read(id);
|
|
|
+ return msg;
|
|
|
+ }
|
|
|
}
|
|
|
|