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
f9fcc225
Commit
f9fcc225
authored
Jun 13, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:内部接口多加两个字段
parent
e40db93b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
cp.go
cv/cp_cv/cp.go
+2
-0
inner.go
route/user_r/inner.go
+2
-0
No files found.
cv/cp_cv/cp.go
View file @
f9fcc225
...
@@ -7,6 +7,8 @@ type CvCp struct {
...
@@ -7,6 +7,8 @@ type CvCp struct {
CpUserInfo
*
user_cv
.
CvUserBase
`json:"cpUserInfo"`
// 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"`
// 等级特权
CreatedUnix
int64
`json:"createdUnix"`
// cp创建时间
CpDays
int
`json:"cpDays"`
// cp天数
}
}
// cp关系
// cp关系
...
...
route/user_r/inner.go
View file @
f9fcc225
...
@@ -157,6 +157,8 @@ func GetUserCp(c *gin.Context) (*mycontext.MyContext, error) {
...
@@ -157,6 +157,8 @@ func GetUserCp(c *gin.Context) (*mycontext.MyContext, error) {
Level
:
cpLevel
,
Level
:
cpLevel
,
},
},
MyPrivilegeList
:
myPrivilegeList
,
MyPrivilegeList
:
myPrivilegeList
,
CpDays
:
int
(
time
.
Now
()
.
Sub
(
cpRelation
.
CreatedTime
)
.
Hours
()
/
24
)
+
1
,
CreatedUnix
:
cpRelation
.
CreatedTime
.
Unix
(),
}
}
resp
.
ResponseOk
(
c
,
response
)
resp
.
ResponseOk
(
c
,
response
)
return
myContext
,
nil
return
myContext
,
nil
...
...
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