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
e6e75a60
Commit
e6e75a60
authored
Jun 09, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:
parent
70097919
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 @
e6e75a60
...
...
@@ -4,12 +4,7 @@ import "hilo-user/cv/user_cv"
// cp信息
type
CvCp
struct
{
CpInfo
CvCpInfoAll
`json:"cpInfo"`
// cp信息
CpLevel
CvCpLevel
`json:"cpLevel"`
// cp等级
MyPrivilegeList
[]
CvPrivilege
`json:"myPrivilegeList"`
// 等级特权
}
type
CvCpInfoAll
struct
{
UserInfo
*
user_cv
.
CvUserBase
`json:"userInfo,omitempty"`
// 用户信息
CpUserInfo
*
user_cv
.
CvUserBase
`json:"cpUserInfo,omitempty"`
// cp用户信息
CpUserInfo
*
user_cv
.
CvUserBase
`json:"cpUserInfo"`
// cp用户信息
CpLevel
CvCpLevel
`json:"cpLevel"`
// cp等级
MyPrivilegeList
[]
CvPrivilege
`json:"myPrivilegeList"`
// 等级特权
}
route/user_r/inner.go
View file @
e6e75a60
...
...
@@ -151,10 +151,7 @@ func GetUserCp(c *gin.Context) (*mycontext.MyContext, error) {
}
// 返回值
response
=
cp_cv
.
CvCp
{
CpInfo
:
cp_cv
.
CvCpInfoAll
{
//UserInfo: userBases[userId],
CpUserInfo
:
userBases
[
cpUserId
],
},
CpUserInfo
:
userBases
[
cpUserId
],
CpLevel
:
cp_cv
.
CvCpLevel
{
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