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
7fdd9d66
Commit
7fdd9d66
authored
Jun 02, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:omitempty
parent
d14f8969
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
rank.go
cv/cp_cv/rank.go
+2
-2
space.go
cv/cp_cv/space.go
+5
-5
user.go
cv/user_cv/user.go
+2
-2
No files found.
cv/cp_cv/rank.go
View file @
7fdd9d66
...
...
@@ -16,8 +16,8 @@ type CvCp struct {
type
CvCpAchievement
struct
{
CpId
uint64
`json:"cpId"`
// cpId
User1
user_cv
.
UserTiny
`json:"user1"`
// user1
User2
user_cv
.
UserTiny
`json:"user2"`
// user2
User1
*
user_cv
.
UserTiny
`json:"user1"`
// user1
User2
*
user_cv
.
UserTiny
`json:"user2"`
// user2
Type
cp_e
.
CpAchievement
`json:"type"`
// 成就类型 1:等级 2:空间访问人数 3:月榜最高 4:周榜最高 5:日榜最高
TypeDesc
string
`json:"typeDesc"`
// 成就类型翻译
Score
uint32
`json:"score"`
// 分值
...
...
cv/cp_cv/space.go
View file @
7fdd9d66
...
...
@@ -12,11 +12,11 @@ import (
// cp信息
type
CvCpInfo
struct
{
UserInfo
user_cv
.
UserTiny
`json:"userInfo"`
// 用户信息
CpUserInfo
user_cv
.
UserTiny
`json:"cpUserInfo,omitempty"`
// cp用户信息
CpDays
int
`json:"cpDays"`
// cp天数
VisitTimes
int64
`json:"visitTimes"`
// 空间访问量
ApplyToUnbind
bool
`json:"applyToUnbind"`
// 是否申请撤销cp
UserInfo
*
user_cv
.
UserTiny
`json:"userInfo"`
// 用户信息
CpUserInfo
*
user_cv
.
UserTiny
`json:"cpUserInfo,omitempty"`
// cp用户信息
CpDays
int
`json:"cpDays"`
// cp天数
VisitTimes
int64
`json:"visitTimes"`
// 空间访问量
ApplyToUnbind
bool
`json:"applyToUnbind"`
// 是否申请撤销cp
}
// cp等级
...
...
cv/user_cv/user.go
View file @
7fdd9d66
...
...
@@ -28,8 +28,8 @@ type UserTiny struct {
IsPrettyCode
bool
`json:"isPrettyCode"`
// 是否靓号
}
func
UserToTiny
(
user
user_m
.
User
)
UserTiny
{
return
UserTiny
{
func
UserToTiny
(
user
user_m
.
User
)
*
UserTiny
{
return
&
UserTiny
{
Id
:
user
.
ID
,
ExternalId
:
user
.
ExternalId
,
Avatar
:
user
.
Avatar
,
...
...
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