Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hilo-group
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
hujiebin
hilo-group
Commits
489533ed
Commit
489533ed
authored
Mar 22, 2023
by
hujiebin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert "feat:去掉无用的"
This reverts commit
37383277
.
parent
37383277
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
group_rank.go
cv/group_power_cv/group_rank.go
+15
-0
group_rank.go
route/group_power_r/group_rank.go
+1
-0
No files found.
cv/group_power_cv/group_rank.go
View file @
489533ed
...
@@ -52,6 +52,13 @@ type CvGroupPowerStarData struct {
...
@@ -52,6 +52,13 @@ type CvGroupPowerStarData struct {
Score
uint32
`json:"score"`
// 对应分值
Score
uint32
`json:"score"`
// 对应分值
}
}
// 资源等级
type
CvResGrade
struct
{
Grade
groupPower_e
.
GroupPowerGrade
`json:"grade"`
// 等级
Icon
string
`json:"icon"`
// 等级icon
BigIcon
string
`json:"bigIcon"`
// 等级大图标
}
// 特权信息
// 特权信息
type
CvPrivilege
struct
{
type
CvPrivilege
struct
{
Type
groupPower_e
.
GroupPowerPrivilege
`json:"type"`
// 特权id 1:成员数 2:管理员数 3:家族铭牌 4:家族徽章装饰 5:编辑铭牌 6:家族头饰
Type
groupPower_e
.
GroupPowerPrivilege
`json:"type"`
// 特权id 1:成员数 2:管理员数 3:家族铭牌 4:家族徽章装饰 5:编辑铭牌 6:家族头饰
...
@@ -62,10 +69,18 @@ type CvPrivilege struct {
...
@@ -62,10 +69,18 @@ type CvPrivilege struct {
type
CvGroupPowerGradeDetail
struct
{
type
CvGroupPowerGradeDetail
struct
{
GroupPowerBase
CvGroupPowerBase
`json:"groupPowerBase"`
// 家族基本信息
GroupPowerBase
CvGroupPowerBase
`json:"groupPowerBase"`
// 家族基本信息
GroupPowerGrade
CvGroupPowerGrade
`json:"groupPowerGrade"`
// 家族等级信息
GroupPowerGrade
CvGroupPowerGrade
`json:"groupPowerGrade"`
// 家族等级信息
ResGradeList
[]
CvResGrade
`json:"resGradeList"`
// 资源等级列表,青铜、白银、黄金、黑金
PrivilegeList
[]
CvPrivilege
`json:"privilegeList"`
// 等级特权
PrivilegeList
[]
CvPrivilege
`json:"privilegeList"`
// 等级特权
IsMember
bool
`json:"isMember"`
// 是否家族成员
IsMember
bool
`json:"isMember"`
// 是否家族成员
}
}
var
CvResGradeList
=
[]
CvResGrade
{
{
groupPower_e
.
GroupPowerGrade0
,
"青铜icon"
,
"青铜bigIcon"
},
// todo
{
groupPower_e
.
GroupPowerGrade1
,
"白银icon"
,
"白银bigIcon"
},
// todo
{
groupPower_e
.
GroupPowerGrade2
,
"黄金icon"
,
"黄金bigIcon"
},
// todo
{
groupPower_e
.
GroupPowerGrade3
,
"黑金icon"
,
"黑金bigIcon"
},
// todo
}
var
GroupPowerGradePrivilegeNum
=
map
[
groupPower_e
.
GroupPowerGrade
][]
CvPrivilege
{
var
GroupPowerGradePrivilegeNum
=
map
[
groupPower_e
.
GroupPowerGrade
][]
CvPrivilege
{
groupPower_e
.
GroupPowerGrade0
:
{
groupPower_e
.
GroupPowerGrade0
:
{
{
groupPower_e
.
GroupPowerPrivilegeMemberNum
,
300
},
{
groupPower_e
.
GroupPowerPrivilegeMemberNum
,
300
},
...
...
route/group_power_r/group_rank.go
View file @
489533ed
...
@@ -358,6 +358,7 @@ func GroupPowerGradeDetail(c *gin.Context) (*mycontext.MyContext, error) {
...
@@ -358,6 +358,7 @@ func GroupPowerGradeDetail(c *gin.Context) (*mycontext.MyContext, error) {
NextExp
:
nextExp
,
NextExp
:
nextExp
,
ExpireAt
:
expireAt
,
ExpireAt
:
expireAt
,
},
},
ResGradeList
:
group_power_cv
.
CvResGradeList
,
PrivilegeList
:
group_power_cv
.
GroupPowerGradePrivilegeNum
[
grade
.
Grade
],
PrivilegeList
:
group_power_cv
.
GroupPowerGradePrivilegeNum
[
grade
.
Grade
],
IsMember
:
isMember
,
IsMember
:
isMember
,
}
}
...
...
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