feat:
1. notice module
This commit is contained in:
@@ -110,14 +110,14 @@ public class APPUserController {
|
|||||||
@PostMapping("/notice-detail")
|
@PostMapping("/notice-detail")
|
||||||
@ApiOperationSupport(order = 6)
|
@ApiOperationSupport(order = 6)
|
||||||
@Operation(summary = "用户读取消息", description = "传入request")
|
@Operation(summary = "用户读取消息", description = "传入request")
|
||||||
public R<Boolean> appUserReadNotice(@RequestBody AppUserNoticeRequest request) {
|
public R<Boolean> noticeDetail(@RequestBody AppUserNoticeRequest request) {
|
||||||
return R.status(userNoticeService.appUserReadNotice(request));
|
return R.status(userNoticeService.appUserReadNotice(request));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/unread-num")
|
@GetMapping("/unread-num")
|
||||||
@ApiOperationSupport(order = 6)
|
@ApiOperationSupport(order = 6)
|
||||||
@Operation(summary = "用户未读消息数量")
|
@Operation(summary = "用户未读消息数量")
|
||||||
public R<Integer> appNotReadNoticeNum() {
|
public R<Integer> unreadNum() {
|
||||||
return R.data(userNoticeService.appNotReadNoticeNum());
|
return R.data(userNoticeService.appNotReadNoticeNum());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -60,27 +60,27 @@ public class MarketUserController {
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
@GetMapping("/market-notice-page")
|
@GetMapping("/notice-page")
|
||||||
@ApiOperationSupport(order = 6)
|
@ApiOperationSupport(order = 6)
|
||||||
@Operation(summary = "用户消息列表", description = "传入userNoticeVO")
|
@Operation(summary = "用户消息列表", description = "传入userNoticeVO")
|
||||||
public R<IPage<AppUserNoticeVO>> marketUserNoticeList( Query query) {
|
public R<IPage<AppUserNoticeVO>> noticePage(Query query) {
|
||||||
IPage<AppUserNoticeVO> pages = userNoticeService.selectMarketUserNoticeApiPage(Condition.getPage(query));
|
IPage<AppUserNoticeVO> pages = userNoticeService.selectAppUserNoticeApiPage(Condition.getPage(query));
|
||||||
return R.data(pages);
|
return R.data(pages);
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/market-notread-notice-num")
|
|
||||||
|
@PostMapping("/notice-detail")
|
||||||
|
@ApiOperationSupport(order = 6)
|
||||||
|
@Operation(summary = "用户消息详情", description = "传入request")
|
||||||
|
public R<Boolean> noticeDetail(@RequestBody AppUserNoticeRequest request) {
|
||||||
|
return R.status(userNoticeService.appUserReadNotice(request));
|
||||||
|
}
|
||||||
|
|
||||||
|
@GetMapping("/unread-num")
|
||||||
@ApiOperationSupport(order = 6)
|
@ApiOperationSupport(order = 6)
|
||||||
@Operation(summary = "用户未读消息数量")
|
@Operation(summary = "用户未读消息数量")
|
||||||
public R<Integer> marketNotReadNoticeNum() {
|
public R<Integer> unreadNum() {
|
||||||
return R.data(userNoticeService.marketNotReadNoticeNum());
|
return R.data(userNoticeService.appNotReadNoticeNum());
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
@PostMapping("/market-read-notice")
|
|
||||||
@ApiOperationSupport(order = 6)
|
|
||||||
@Operation(summary = "用户读取消息", description = "传入request")
|
|
||||||
public R<Boolean> marketUserReadNotice(@RequestBody AppUserNoticeRequest request) {
|
|
||||||
return R.status(userNoticeService.marketUserReadNotice(request));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user