🎨 优化讲师包月模块

This commit is contained in:
2025-10-11 16:16:42 +08:00
parent ed962c26b9
commit 99779e6415
3 changed files with 36 additions and 5 deletions

View File

@@ -7,6 +7,7 @@ import (
common "git.echol.cn/loser/lckt/model/common/request"
r "git.echol.cn/loser/lckt/model/common/response"
"git.echol.cn/loser/lckt/utils"
"git.echol.cn/loser/lckt/utils/user_jwt"
"github.com/gin-gonic/gin"
"go.uber.org/zap"
)
@@ -78,7 +79,9 @@ func (a *TeacherVip) GetTeacherVipList(context *gin.Context) {
return
}
vips, total, err := teacherVipService.GetTeacherVipList(p)
userId := user_jwt.GetUserID(context)
vips, total, err := teacherVipService.GetTeacherVipList(p, userId)
if err != nil {
global.GVA_LOG.Error("获取讲师VIP列表失败", zap.Error(err))
r.FailWithMessage("获取讲师VIP列表失败", context)