Compare commits
2 Commits
4146d4cf03
...
f528e4f07c
| Author | SHA1 | Date | |
|---|---|---|---|
| f528e4f07c | |||
| 8cbabac829 |
@@ -108,7 +108,7 @@ public class APPUserController {
|
|||||||
* 用户订单详情
|
* 用户订单详情
|
||||||
*/
|
*/
|
||||||
@GetMapping("/order-detail")
|
@GetMapping("/order-detail")
|
||||||
@ApiOperationSupport(order = 6)
|
@ApiOperationSupport(order = 7)
|
||||||
@Operation(summary = "用户订单详情")
|
@Operation(summary = "用户订单详情")
|
||||||
public R<CommonUserOrderDetailApiVO> orderDetail(Long id) {
|
public R<CommonUserOrderDetailApiVO> orderDetail(Long id) {
|
||||||
return R.data(orderService.orderDetail(id));
|
return R.data(orderService.orderDetail(id));
|
||||||
@@ -116,7 +116,7 @@ public class APPUserController {
|
|||||||
|
|
||||||
|
|
||||||
@GetMapping("/system-notice")
|
@GetMapping("/system-notice")
|
||||||
@ApiOperationSupport(order = 7)
|
@ApiOperationSupport(order = 8)
|
||||||
@Operation(summary = "APP系统消息列表")
|
@Operation(summary = "APP系统消息列表")
|
||||||
public R<List<CommonUserNoticeApiVO>> systemNotice() {
|
public R<List<CommonUserNoticeApiVO>> systemNotice() {
|
||||||
return R.data(userNoticeService.appSystemNoticeList());
|
return R.data(userNoticeService.appSystemNoticeList());
|
||||||
@@ -124,7 +124,7 @@ public class APPUserController {
|
|||||||
|
|
||||||
|
|
||||||
@GetMapping("/user-notice")
|
@GetMapping("/user-notice")
|
||||||
@ApiOperationSupport(order = 8)
|
@ApiOperationSupport(order = 9)
|
||||||
@Operation(summary = "用户消息列表", description = "传入userNoticeVO")
|
@Operation(summary = "用户消息列表", description = "传入userNoticeVO")
|
||||||
public R<IPage<CommonUserNoticeApiVO>> noticePage(Query query) {
|
public R<IPage<CommonUserNoticeApiVO>> noticePage(Query query) {
|
||||||
IPage<CommonUserNoticeApiVO> pages = userNoticeService.selectAppUserNoticeApiPage(Condition.getPage(query), new CommonUserNoticeApiVO());
|
IPage<CommonUserNoticeApiVO> pages = userNoticeService.selectAppUserNoticeApiPage(Condition.getPage(query), new CommonUserNoticeApiVO());
|
||||||
@@ -133,7 +133,7 @@ public class APPUserController {
|
|||||||
|
|
||||||
|
|
||||||
@GetMapping("/notice-detail")
|
@GetMapping("/notice-detail")
|
||||||
@ApiOperationSupport(order = 9)
|
@ApiOperationSupport(order = 10)
|
||||||
@Operation(summary = "用户读取消息")
|
@Operation(summary = "用户读取消息")
|
||||||
public R<CommonUserNoticeDetailApiVO> noticeDetail(Long id) {
|
public R<CommonUserNoticeDetailApiVO> noticeDetail(Long id) {
|
||||||
return R.data(userNoticeService.userNoticeDetail(id));
|
return R.data(userNoticeService.userNoticeDetail(id));
|
||||||
@@ -141,7 +141,7 @@ public class APPUserController {
|
|||||||
|
|
||||||
|
|
||||||
@GetMapping("/unread")
|
@GetMapping("/unread")
|
||||||
@ApiOperationSupport(order = 10)
|
@ApiOperationSupport(order = 11)
|
||||||
@Operation(summary = "用户未读消息数量")
|
@Operation(summary = "用户未读消息数量")
|
||||||
public R<Long> unreadNum() {
|
public R<Long> unreadNum() {
|
||||||
return R.data(userNoticeService.appUnreadNoticeNum());
|
return R.data(userNoticeService.appUnreadNoticeNum());
|
||||||
@@ -149,7 +149,7 @@ public class APPUserController {
|
|||||||
|
|
||||||
|
|
||||||
@GetMapping("/user-address")
|
@GetMapping("/user-address")
|
||||||
@ApiOperationSupport(order = 11)
|
@ApiOperationSupport(order = 12)
|
||||||
@Operation(summary = "用户收货地址", description = "传入userAddressVO")
|
@Operation(summary = "用户收货地址", description = "传入userAddressVO")
|
||||||
public R<List<CommonUserAddressApiVO>> addressList(Query query) {
|
public R<List<CommonUserAddressApiVO>> addressList(Query query) {
|
||||||
return R.data(addressService.selectAddressList(Condition.getPage(query), new CommonUserAddressApiVO()));
|
return R.data(addressService.selectAddressList(Condition.getPage(query), new CommonUserAddressApiVO()));
|
||||||
@@ -157,7 +157,7 @@ public class APPUserController {
|
|||||||
|
|
||||||
|
|
||||||
@PostMapping("/submit-address")
|
@PostMapping("/submit-address")
|
||||||
@ApiOperationSupport(order = 12)
|
@ApiOperationSupport(order = 13)
|
||||||
@Operation(summary = "提交用户收货地址", description = "传入AddressSubmitRequest")
|
@Operation(summary = "提交用户收货地址", description = "传入AddressSubmitRequest")
|
||||||
public R<Boolean> submitAddress(@Valid @RequestBody AddressSubmitRequest request) {
|
public R<Boolean> submitAddress(@Valid @RequestBody AddressSubmitRequest request) {
|
||||||
return R.status(addressService.submitAddress(request));
|
return R.status(addressService.submitAddress(request));
|
||||||
@@ -165,7 +165,7 @@ public class APPUserController {
|
|||||||
|
|
||||||
|
|
||||||
@DeleteMapping("/delete-address")
|
@DeleteMapping("/delete-address")
|
||||||
@ApiOperationSupport(order = 13)
|
@ApiOperationSupport(order = 14)
|
||||||
@Operation(summary = "删除用户收货地址", description = "传入id")
|
@Operation(summary = "删除用户收货地址", description = "传入id")
|
||||||
public R<Boolean> removeAddress(@Valid @RequestBody AddressRemoveRequest request) {
|
public R<Boolean> removeAddress(@Valid @RequestBody AddressRemoveRequest request) {
|
||||||
return R.status(addressService.removeAddress(request.getIds()));
|
return R.status(addressService.removeAddress(request.getIds()));
|
||||||
@@ -173,42 +173,42 @@ public class APPUserController {
|
|||||||
|
|
||||||
|
|
||||||
@GetMapping("/user-points")
|
@GetMapping("/user-points")
|
||||||
@ApiOperationSupport(order = 14)
|
@ApiOperationSupport(order = 15)
|
||||||
@Operation(summary = "用户积分查询")
|
@Operation(summary = "用户积分查询")
|
||||||
public R<BigDecimal> userPoints() {
|
public R<BigDecimal> userPoints() {
|
||||||
return R.data(pointService.queryPoint());
|
return R.data(pointService.queryPoint());
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/lottery-prizes")
|
@GetMapping("/lottery-prizes")
|
||||||
@ApiOperationSupport(order = 15)
|
@ApiOperationSupport(order = 16)
|
||||||
@Operation(summary = "奖品列表")
|
@Operation(summary = "奖品列表")
|
||||||
public R<List<CommonLotteryPrizeApiVO>> lotteryPrizes() {
|
public R<List<CommonLotteryPrizeApiVO>> lotteryPrizes() {
|
||||||
return R.data(lotteryPrizeService.staticList());
|
return R.data(lotteryPrizeService.staticList());
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/lottery-records")
|
@GetMapping("/lottery-records")
|
||||||
@ApiOperationSupport(order = 16)
|
@ApiOperationSupport(order = 17)
|
||||||
@Operation(summary = "抽奖记录")
|
@Operation(summary = "抽奖记录")
|
||||||
public R<IPage<CommonLotteryRecordApiVO>> lotteryRecords(Query query) {
|
public R<IPage<CommonLotteryRecordApiVO>> lotteryRecords(Query query) {
|
||||||
return R.data(lotteryRecordService.selectLotteryRecordApiPage(Condition.getPage(query), new CommonLotteryRecordApiVO()));
|
return R.data(lotteryRecordService.selectLotteryRecordApiPage(Condition.getPage(query), new CommonLotteryRecordApiVO()));
|
||||||
}
|
}
|
||||||
|
|
||||||
@PostMapping("/lottery-draw")
|
@PostMapping("/lottery-draw")
|
||||||
@ApiOperationSupport(order = 17)
|
@ApiOperationSupport(order = 18)
|
||||||
@Operation(summary = "用户抽奖", description = "传入LotteriesDrawRequest")
|
@Operation(summary = "用户抽奖", description = "传入LotteriesDrawRequest")
|
||||||
public R<CommonLotteryPrizeApiVO> draw(@Valid @RequestBody LotteryDrawRequest request) {
|
public R<CommonLotteryPrizeApiVO> draw(@Valid @RequestBody LotteryDrawRequest request) {
|
||||||
return R.data(lotteryPrizeService.draw(request));
|
return R.data(lotteryPrizeService.draw(request));
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/lottery-rules")
|
@GetMapping("/lottery-rules")
|
||||||
@ApiOperationSupport(order = 18)
|
@ApiOperationSupport(order = 19)
|
||||||
@Operation(summary = "抽奖规则")
|
@Operation(summary = "抽奖规则")
|
||||||
public R<String> lotteryRules() {
|
public R<String> lotteryRules() {
|
||||||
return R.data(lotteryPrizeService.rules());
|
return R.data(lotteryPrizeService.rules());
|
||||||
}
|
}
|
||||||
|
|
||||||
@GetMapping("/lottery-winners")
|
@GetMapping("/lottery-winners")
|
||||||
@ApiOperationSupport(order = 19)
|
@ApiOperationSupport(order = 20)
|
||||||
@Operation(summary = "获奖名单")
|
@Operation(summary = "获奖名单")
|
||||||
public R<List<CommonLotteryWinnerApiVO>> lotteryWinners() {
|
public R<List<CommonLotteryWinnerApiVO>> lotteryWinners() {
|
||||||
return R.data(lotteryRecordService.lotteryWinners());
|
return R.data(lotteryRecordService.lotteryWinners());
|
||||||
|
|||||||
Reference in New Issue
Block a user