rank.go 1.18 KB
Newer Older
hujiebin's avatar
hujiebin committed
1 2
package cp_cv

hujiebin's avatar
hujiebin committed
3 4 5 6
import (
	"hilo-user/_const/enum/cp_e"
	"hilo-user/cv/user_cv"
)
hujiebin's avatar
hujiebin committed
7 8

type CvCp struct {
9 10 11 12 13
	CpId    uint64              `json:"cpId"`    // cpId
	User1   *user_cv.CvUserBase `json:"user1"`   // user1
	User2   *user_cv.CvUserBase `json:"user2"`   // user2
	Score   uint32              `json:"score"`   // 分值
	CpLevel CvCpLevel           `json:"cpLevel"` // cp等级
hujiebin's avatar
hujiebin committed
14
	Ranking string              `json:"ranking"` // 排名
hujiebin's avatar
hujiebin committed
15
}
hujiebin's avatar
hujiebin committed
16 17 18 19 20 21 22 23 24 25

type CvCpAchievement struct {
	CpId     uint64             `json:"cpId"`     // cpId
	User1    user_cv.UserTiny   `json:"user1"`    // user1
	User2    user_cv.UserTiny   `json:"user2"`    // user2
	Type     cp_e.CpAchievement `json:"type"`     // 成就类型 1:等级 2:空间访问人数 3:月榜最高 4:周榜最高 5:日榜最高
	TypeDesc string             `json:"typeDesc"` // 成就类型翻译
	Score    uint32             `json:"score"`    // 分值
	TimeUnix int64              `json:"timeUnix"` // 达成成就时间戳
}
hujiebin's avatar
hujiebin committed
26 27 28 29 30 31 32

type CvCpAnniversary struct {
	Id       uint64 `json:"id"`       // 记录id
	Content  string `json:"content"`  // 纪念日内容
	Date     string `json:"date"`     // 纪念日日期
	IsRemind bool   `json:"isRemind"` // 是否提醒
}