| | |
| | | |
| | | import cn.gistack.sm.message.entity.MessageRecord; |
| | | import cn.gistack.sm.message.service.IMessageRecordService; |
| | | import cn.gistack.sm.message.vo.MessageRecordVO; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import io.swagger.annotations.ApiParam; |
| | |
| | | private IMessageRecordService messageRecordService; |
| | | |
| | | @ApiOperation(value = "站内信管理", notes = "站内信管理-分页列表查询") |
| | | @GetMapping(value = "/page") |
| | | @GetMapping(value = "/list") |
| | | public R page(MessageRecord messageRecord, Query query) { |
| | | return R.data(messageRecordService.page(Condition.getPage(query), Condition.getQueryWrapper(messageRecord))); |
| | | } |
| | | |
| | | /** |
| | | * 自定义分页列表 |
| | | * @param messageRecord |
| | | * @param query |
| | | * @return |
| | | */ |
| | | @ApiOperation(value = "站内信管理", notes = "站内信管理-分页列表查询") |
| | | @GetMapping(value = "/page") |
| | | public R selectMessageRecordPageList(MessageRecordVO messageRecord, Query query) { |
| | | return R.data(messageRecordService.selectMessageRecordPageList(Condition.getPage(query), messageRecord)); |
| | | } |
| | | |
| | | @ApiOperation(value = "我的站内信", notes = "我的站内信列表查询") |
| | |
| | | |
| | | @ApiOperation(value = "设置已读", notes = "设置已读") |
| | | @PostMapping(value = "/editRead") |
| | | public R editRead(@ApiParam(value = "主键集合", required = true) @RequestParam(required = true) Long id) { |
| | | MessageRecord messageRecord = new MessageRecord(); |
| | | messageRecord.setId(id); |
| | | public R editRead(@RequestBody MessageRecord messageRecord) { |
| | | messageRecord.setStatus(1); |
| | | return R.data(messageRecordService.updateById(messageRecord)); |
| | | } |