| | |
| | | import com.doumee.dao.business.model.Notice; |
| | | import com.doumee.dao.web.dto.NoticeCardDTO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiImplicitParams; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | @Api(tags = "消息通知信业务") |
| | | @Trace(exclude = true) |
| | | @LoginRequired |
| | | //@RestController |
| | | @RestController |
| | | @RequestMapping("/web/notice") |
| | | @Slf4j |
| | | public class NoticeApi extends ApiController{ |
| | |
| | | * @param pageWrap |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "查询用户通知", notes = "小程序端") |
| | | @GetMapping("/findNoticeCardDTOPage") |
| | | public ApiResponse<PageData<NoticeCardDTO>> findNoticeCardDTOPage(@RequestBody PageWrap<Notice> pageWrap){ |
| | | |
| | | @LoginRequired |
| | | @ApiOperation(value = "查询用户通知", notes = "小程序端") |
| | | @PostMapping("/findNoticeCardDTOPage") |
| | | @ApiImplicitParams({ |
| | | @ApiImplicitParam(paramType = "header", dataType = "String", name = "token", value = "用户token值", required = true), |
| | | }) |
| | | public ApiResponse<PageData<NoticeCardDTO>> findNoticeCardDTOPage(@RequestBody PageWrap<Notice> pageWrap){ |
| | | pageWrap.getModel().setMemberId(this.getMemberId()); |
| | | return ApiResponse.success(noticeService.findNoticeCardDTOPage(pageWrap)); |
| | | } |
| | | |