|
|
@@ -1,6 +1,7 @@
|
|
|
package cn.reghao.tnb.user.app.controller;
|
|
|
|
|
|
import cn.reghao.jutil.jdk.web.result.Result;
|
|
|
+import cn.reghao.tnb.common.auth.UserContext;
|
|
|
import cn.reghao.tnb.common.web.WebResult;
|
|
|
import cn.reghao.tnb.common.auth.AuthUser;
|
|
|
import cn.reghao.tnb.user.app.model.dto.BuyVip;
|
|
|
@@ -32,7 +33,8 @@ public class UserVipController {
|
|
|
@AuthUser
|
|
|
@GetMapping("/my")
|
|
|
public String getMyVip() {
|
|
|
- MyVip myVip = userVipService.getMyVip();
|
|
|
+ long loginUser = UserContext.getUserId();
|
|
|
+ MyVip myVip = userVipService.getMyVip(loginUser);
|
|
|
return WebResult.success(myVip);
|
|
|
}
|
|
|
|