会员卡管理接口
This commit is contained in:
@@ -4,6 +4,7 @@ import com.czg.account.entity.ShopUser;
|
||||
import com.czg.account.service.ShopUserService;
|
||||
import com.czg.resp.CzgResult;
|
||||
import com.czg.sa.StpKit;
|
||||
import com.mybatisflex.core.paginate.Page;
|
||||
import jakarta.annotation.Resource;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
@@ -28,4 +29,15 @@ public class UShopUserController {
|
||||
public CzgResult<ShopUser> get() {
|
||||
return CzgResult.success(shopUserService.getShopUserInfo(StpKit.USER.getShopId(), StpKit.USER.getLoginIdAsLong()));
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* 获取当前用户所有店铺会员信息
|
||||
* @return 店铺会员信息列表
|
||||
*/
|
||||
@GetMapping("/vipCard")
|
||||
public CzgResult<Page<ShopUser>> list() {
|
||||
return CzgResult.success(shopUserService.vipCard(StpKit.USER.getLoginIdAsLong()));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user