diff --git a/cv/group_power_cv/group_rank.go b/cv/group_power_cv/group_rank.go index 3f155773c410a9a90c130f673f0af1f3870a9150..f171c0722a09e318f1f5632a7e9d06af4db28d5a 100644 --- a/cv/group_power_cv/group_rank.go +++ b/cv/group_power_cv/group_rank.go @@ -37,8 +37,8 @@ type CvGroupPowerGrade struct { // 家族榜单 type CvGroupPowerRank struct { - MyGroupPower CvGroupPowerRankData `json:"myGroupPower"` // 我的家族排名 - Items []CvGroupPowerRankData `json:"items"` // 列表 + MyGroupPower *CvGroupPowerRankData `json:"myGroupPower,omitempty"` // 我的家族排名 + Items []CvGroupPowerRankData `json:"items"` // 列表 } type CvGroupPowerRankData struct { diff --git a/route/group_power_r/group_rank.go b/route/group_power_r/group_rank.go index 7ff793766a45edfe35a202a1ecb56dbcc3ec7620..d0289f70d75274c8b758c7f1fa947cec8a6b0973 100644 --- a/route/group_power_r/group_rank.go +++ b/route/group_power_r/group_rank.go @@ -75,7 +75,7 @@ func GroupPowerRank(c *gin.Context) (*mycontext.MyContext, error) { if err != nil { return myContext, err } - response.MyGroupPower = group_power_cv.CvGroupPowerRankData{ + response.MyGroupPower = &group_power_cv.CvGroupPowerRankData{ CvGroupPowerBase: group_power_cv.CvGroupPowerBase{ GroupPowerId: myGroupPower.GroupPowerId, Icon: groupPowers[myGroupPower.GroupPowerId].Icon,