group_rank.go 1.11 KB
Newer Older
hujiebin's avatar
hujiebin committed
1 2 3 4 5
package group_power_cv

import (
	"git.hilo.cn/hilo-common/resource/mysql"
	"hilo-group/_const/enum/groupPower_e"
hujiebin's avatar
hujiebin committed
6
	"hilo-group/cv/user_cv"
hujiebin's avatar
hujiebin committed
7 8
)

hujiebin's avatar
hujiebin committed
9 10 11 12 13 14
// 家族榜单
type CvGroupPowerRank struct {
	MyGroupPower CvGroupPowerRankData   `json:"myGroupPower"`
	Items        []CvGroupPowerRankData `json:"items"`
}

hujiebin's avatar
hujiebin committed
15 16 17 18 19 20 21 22 23 24 25
type CvGroupPowerRankData struct {
	GroupPowerId mysql.ID                     `json:"groupPowerId"` // 家族id
	GroupPic     string                       `json:"groupPic"`     // 家族图片
	Name         string                       `json:"name"`         // 家族名
	Nameplate    string                       `json:"nameplate"`    // 铭牌
	Grade        groupPower_e.GroupPowerGrade `json:"grade"`        // 等级 0:无 1:青铜 2:白银 3:黄金 4:黑金
	Exp          mysql.Num                    `json:"exp"`          // 经验值
	Rank         int                          `json:"rank"`         // 排名
	// todo 铭牌,图片等字段, 等伟健哥哥的结构体
}

hujiebin's avatar
hujiebin committed
26 27 28 29
// 家族之星
type CvGroupPowerStarData struct {
	user_cv.CvUserBase `json:",inline"`
	Score              mysql.Num `json:"score"` // 对应分值
hujiebin's avatar
hujiebin committed
30
}