会员码接口

This commit is contained in:
张松
2025-02-15 17:40:56 +08:00
parent 3315bfbb28
commit 6b77134c05
4 changed files with 49 additions and 4 deletions

View File

@@ -31,7 +31,6 @@ public class UShopUserController {
return CzgResult.success(shopUserService.getShopUserInfo(StpKit.USER.getShopId(), StpKit.USER.getLoginIdAsLong()));
}
/**
* 获取当前用户所有店铺会员信息
* @return 店铺会员信息列表
@@ -41,4 +40,13 @@ public class UShopUserController {
return CzgResult.success(shopUserService.vipCard(StpKit.USER.getLoginIdAsLong()));
}
/**
* 获取动态会员码
* @return 店铺会员信息列表
*/
@GetMapping("/code")
public CzgResult<String> code() {
return CzgResult.success(shopUserService.getCode(StpKit.USER.getLoginIdAsLong(), StpKit.USER.getShopId()));
}
}