| | |
| | | package com.doumee.api.web; |
| | | |
| | | import com.doumee.core.annotation.LoginDriverRequired; |
| | | import com.doumee.core.annotation.LoginRequired; |
| | | import com.doumee.core.annotation.LoginShopRequired; |
| | | import com.doumee.core.annotation.trace.Trace; |
| | |
| | | return ApiResponse.success("查询成功", noticeService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @LoginRequired |
| | | @LoginShopRequired |
| | | @ApiOperation(value = "门店标记全部已读", notes = "标记当前用户所有未读通知为已读") |
| | | @PostMapping("/shopReadAllNotice") |
| | | @ApiImplicitParams({ |
| | |
| | | } |
| | | |
| | | |
| | | |
| | | @LoginDriverRequired |
| | | @ApiOperation(value = "司机通知消息分页", notes = "未读优先,时间倒序") |
| | | @PostMapping("/driverNoticePage") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true) |
| | | }) |
| | | public ApiResponse<PageData<Notice>> driverNoticePage(@RequestBody PageWrap<Notice> pageWrap) { |
| | | if (pageWrap.getModel() == null) { |
| | | pageWrap.setModel(new Notice()); |
| | | } |
| | | pageWrap.getModel().setUserId(this.getDriverId()); |
| | | pageWrap.getModel().setUserType(Constants.ONE); |
| | | return ApiResponse.success("查询成功", noticeService.findPage(pageWrap)); |
| | | } |
| | | |
| | | @LoginDriverRequired |
| | | @ApiOperation(value = "司机标记全部已读", notes = "标记当前用户所有未读通知为已读") |
| | | @PostMapping("/driverReadAllNotice") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true) |
| | | }) |
| | | public ApiResponse driverReadAllNotice() { |
| | | noticeService.readAllNotice(Constants.ONE, this.getDriverId()); |
| | | return ApiResponse.success("操作成功"); |
| | | } |
| | | |
| | | |
| | | } |