Commit 7c043be8 authored by hujiebin's avatar hujiebin

omitempty

parent 3798c921
......@@ -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 {
......
......@@ -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,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment