|  |  |  | 
|---|
|  |  |  | package com.doumee.cloud.web; | 
|---|
|  |  |  |  | 
|---|
|  |  |  | import com.doumee.api.BaseController; | 
|---|
|  |  |  | import com.doumee.core.annotation.trace.Trace; | 
|---|
|  |  |  | import com.doumee.core.model.ApiResponse; | 
|---|
|  |  |  | import com.doumee.core.model.LoginUserInfo; | 
|---|
|  |  |  | import com.doumee.core.model.PageData; | 
|---|
|  |  |  | import com.doumee.core.model.PageWrap; | 
|---|
|  |  |  | import com.doumee.core.utils.Constants; | 
|---|
|  |  |  | 
|---|
|  |  |  | @Api(tags = "消息通知信业务") | 
|---|
|  |  |  | @Trace(exclude = true) | 
|---|
|  |  |  | @RestController | 
|---|
|  |  |  | @RequestMapping("/web/notice") | 
|---|
|  |  |  | @RequestMapping(Constants.CLOUD_SERVICE_URL_INDEX+"/web/notice") | 
|---|
|  |  |  | @Slf4j | 
|---|
|  |  |  | public class NoticeApi extends ApiController{ | 
|---|
|  |  |  | public class NoticeApi extends BaseController { | 
|---|
|  |  |  |  | 
|---|
|  |  |  | @Autowired | 
|---|
|  |  |  | private NoticesService noticeService; | 
|---|
|  |  |  | 
|---|
|  |  |  | */ | 
|---|
|  |  |  | @ApiOperation(value = "查询用户通知", notes = "小程序端") | 
|---|
|  |  |  | @PostMapping("/findNoticePage") | 
|---|
|  |  |  | public ApiResponse<PageData<Notices>> findNoticePage(@RequestBody PageWrap<Notices> pageWrap){ | 
|---|
|  |  |  | pageWrap.getModel().setUserId(getMemberId()); | 
|---|
|  |  |  | public ApiResponse<PageData<Notices>> findNoticePage(@RequestBody PageWrap<Notices> pageWrap | 
|---|
|  |  |  | ,@RequestHeader(Constants.HEADER_USER_TOKEN) String token){ | 
|---|
|  |  |  | LoginUserInfo user = getLoginUser(token); | 
|---|
|  |  |  | pageWrap.getModel().setUserId(user.getId()); | 
|---|
|  |  |  | return ApiResponse.success("查询成功",noticeService.findPage(pageWrap)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  |  | 
|---|