Commit a8fe9a52 authored by hujiebin's avatar hujiebin

Merge branch 'feature/cp-new' into feature/3.9.0

parents 768c4b4f e6e75a60
...@@ -4,12 +4,7 @@ import "hilo-user/cv/user_cv" ...@@ -4,12 +4,7 @@ import "hilo-user/cv/user_cv"
// cp信息 // cp信息
type CvCp struct { type CvCp struct {
CpInfo CvCpInfoAll `json:"cpInfo"` // cp信息 CpUserInfo *user_cv.CvUserBase `json:"cpUserInfo"` // cp用户信息
CpLevel CvCpLevel `json:"cpLevel"` // cp等级 CpLevel CvCpLevel `json:"cpLevel"` // cp等级
MyPrivilegeList []CvPrivilege `json:"myPrivilegeList"` // 等级特权 MyPrivilegeList []CvPrivilege `json:"myPrivilegeList"` // 等级特权
}
type CvCpInfoAll struct {
UserInfo *user_cv.CvUserBase `json:"userInfo,omitempty"` // 用户信息
CpUserInfo *user_cv.CvUserBase `json:"cpUserInfo,omitempty"` // cp用户信息
} }
...@@ -151,10 +151,7 @@ func GetUserCp(c *gin.Context) (*mycontext.MyContext, error) { ...@@ -151,10 +151,7 @@ func GetUserCp(c *gin.Context) (*mycontext.MyContext, error) {
} }
// 返回值 // 返回值
response = cp_cv.CvCp{ response = cp_cv.CvCp{
CpInfo: cp_cv.CvCpInfoAll{ CpUserInfo: userBases[cpUserId],
//UserInfo: userBases[userId],
CpUserInfo: userBases[cpUserId],
},
CpLevel: cp_cv.CvCpLevel{ CpLevel: cp_cv.CvCpLevel{
Level: cpLevel, Level: cpLevel,
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment