cp.go 909 Bytes
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 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23

// cp信息
type CvCp struct {
	CpUserInfo      *user_cv.CvUserBase `json:"cpUserInfo"`      // cp用户信息
	CpLevel         CvCpLevel           `json:"cpLevel"`         // cp等级
	MyPrivilegeList []CvPrivilege       `json:"myPrivilegeList"` // 等级特权
	CreatedUnix     int64               `json:"createdUnix"`     // cp创建时间
	CpDays          int                 `json:"cpDays"`          // cp天数
}

// cp关系
type CvCpRelation struct {
	CpId         uint64 `json:"cpId"`
	UserId       uint64 `json:"userId"`
	CpUserId     uint64 `json:"cpUserId"`
	CpUserAvatar string `json:"cpUserAvatar,omitempty"`
}
hujiebin's avatar
hujiebin committed
24 25 26 27 28 29 30

// cp进场特效信息
type CvCpEntryEffect struct {
	CpLevel       cp_e.CpLevel `json:"cpLevel"`
	CpUserAvatar  string       `json:"cpUserAvatar"`
	CpEntryEffect bool         `json:"cpEntryEffect"`
}