From 489533ed04346e4789182ea967bc0206bbc2abea Mon Sep 17 00:00:00 2001 From: hujiebin Date: Wed, 22 Mar 2023 18:08:58 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"feat=EF=BC=9A=E5=8E=BB=E6=8E=89?= =?UTF-8?q?=E6=97=A0=E7=94=A8=E7=9A=84"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 37383277c3f71a90bd340f8aae24be948bc82323. --- cv/group_power_cv/group_rank.go | 15 +++++++++++++++ route/group_power_r/group_rank.go | 1 + 2 files changed, 16 insertions(+) diff --git a/cv/group_power_cv/group_rank.go b/cv/group_power_cv/group_rank.go index 6edfa6f..2432114 100644 --- a/cv/group_power_cv/group_rank.go +++ b/cv/group_power_cv/group_rank.go @@ -52,6 +52,13 @@ type CvGroupPowerStarData struct { 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 groupPower_e.GroupPowerPrivilege `json:"type"` // 特权id 1:成员数 2:管理员数 3:家族铭牌 4:家族徽章装饰 5:编辑铭牌 6:家族头饰 @@ -62,10 +69,18 @@ type CvPrivilege struct { type CvGroupPowerGradeDetail struct { GroupPowerBase CvGroupPowerBase `json:"groupPowerBase"` // 家族基本信息 GroupPowerGrade CvGroupPowerGrade `json:"groupPowerGrade"` // 家族等级信息 + ResGradeList []CvResGrade `json:"resGradeList"` // 资源等级列表,青铜、白银、黄金、黑金 PrivilegeList []CvPrivilege `json:"privilegeList"` // 等级特权 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{ groupPower_e.GroupPowerGrade0: { {groupPower_e.GroupPowerPrivilegeMemberNum, 300}, diff --git a/route/group_power_r/group_rank.go b/route/group_power_r/group_rank.go index 496214a..0c4230a 100644 --- a/route/group_power_r/group_rank.go +++ b/route/group_power_r/group_rank.go @@ -358,6 +358,7 @@ func GroupPowerGradeDetail(c *gin.Context) (*mycontext.MyContext, error) { NextExp: nextExp, ExpireAt: expireAt, }, + ResGradeList: group_power_cv.CvResGradeList, PrivilegeList: group_power_cv.GroupPowerGradePrivilegeNum[grade.Grade], IsMember: isMember, } -- 2.22.0