Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-user
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
chenweijian
hilo-user
Commits
a8fe9a52
Commit
a8fe9a52
authored
Jun 09, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/cp-new' into feature/3.9.0
parents
768c4b4f
e6e75a60
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
12 deletions
+4
-12
cp.go
cv/cp_cv/cp.go
+3
-8
inner.go
route/user_r/inner.go
+1
-4
No files found.
cv/cp_cv/cp.go
View file @
a8fe9a52
...
@@ -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用户信息
}
}
route/user_r/inner.go
View file @
a8fe9a52
...
@@ -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
,
},
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment