返回格式
This commit is contained in:
@@ -43,11 +43,11 @@ public class AChatCouponController {
|
||||
*/
|
||||
@GetMapping("/page")
|
||||
@SaAdminCheckPermission(value = "chat:coupon:page", name = "群聊优惠券活动-分页查询")
|
||||
public Page<ChatCouponVO> pageChatCoupon(@RequestParam(required = false, defaultValue = "1") Integer page,
|
||||
public CzgResult<Page<ChatCouponVO>> pageChatCoupon(@RequestParam(required = false, defaultValue = "1") Integer page,
|
||||
@RequestParam(required = false, defaultValue = "10") Integer size,
|
||||
@RequestParam(required = false) Integer status) {
|
||||
Long shopId = StpKit.USER.getShopId();
|
||||
return chatCouponService.pageChatCoupon(shopId, page, size, status);
|
||||
return CzgResult.success(chatCouponService.pageChatCoupon(shopId, page, size, status));
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -66,11 +66,11 @@ public class AChatCouponController {
|
||||
*/
|
||||
@GetMapping("/record")
|
||||
@SaAdminCheckPermission(value = "chat:coupon:record", name = "群聊优惠券活动-发放记录")
|
||||
public Page<MkShopCouponRecord> grantChatCouponRecord(@RequestParam Long id,
|
||||
public CzgResult<Page<MkShopCouponRecord>> grantChatCouponRecord(@RequestParam Long id,
|
||||
@RequestParam(required = false) Integer status,
|
||||
@RequestParam(required = false, defaultValue = "1") Integer page,
|
||||
@RequestParam(required = false, defaultValue = "10") Integer size) {
|
||||
return chatCouponService.grantChatCouponRecord(id, status, page, size);
|
||||
return CzgResult.success(chatCouponService.grantChatCouponRecord(id, status, page, size));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user