优惠券店铺列表

This commit is contained in:
2025-09-25 14:37:40 +08:00
parent b5e6077321
commit 1e39877bb0
6 changed files with 132 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
package com.czg.controller.user;
import com.czg.account.vo.ShopInfoCouponVO;
import com.czg.account.vo.UserCouponVo;
import com.czg.market.service.ShopCouponService;
import com.czg.market.vo.UserCouponVO;
@@ -22,6 +23,19 @@ public class UShopCouponController {
@Resource
private ShopCouponService couponService;
/**
* 获取当前店铺会员信息
* 请求头必须携带shopId, 不携带则会失败
*
* @return 店铺会员信息
*/
@GetMapping("/shops")
public CzgResult<List<ShopInfoCouponVO>> shops() {
return CzgResult.success(couponService.getShopByCouponRecord(StpKit.USER.getShopId(), StpKit.USER.getLoginIdAsLong()));
}
/**
* 通过用户Id 查找优惠券
*