invite_apply.go 1.24 KB
Newer Older
chenweijian's avatar
chenweijian committed
1 2 3 4 5 6 7 8 9 10 11 12 13
package invite_cv

import "git.hilo.cn/hilo-common/resource/mysql"

type CvUserLevel struct {
	UserId          mysql.ID `json:"userId"`          // 用户id
	WealthUserGrade uint32   `json:"wealthUserGrade"` // 财富等级
	CharmUserGrade  uint32   `json:"charmUserGrade"`  // 魅力等级
	ActiveUserGrade uint32   `json:"activeUserGrade"` // 活跃等级
	NobleLevel      uint16   `json:"nobleLevel"`      // 贵族等级
}

type InviteApplyRes struct {
chenweijian's avatar
chenweijian committed
14 15 16 17 18 19 20 21 22 23 24 25
	List    []*InviteApply       `json:"list"`
	NumList []*InviteApplyNumRes `json:"numList"`
}

type InviteApply struct {
	NewUserCode string `json:"newUserCode"`
	Platform    string `json:"platform"`
	Recharge    string `json:"recharge"`
	UserCode    string `json:"userCode"`
	CreateUnix  int64  `json:"createUnix"`
	Level       string `json:"level"`
	Status      uint8  `json:"status"` // 状态0.未审核1.已通过2.已拒绝
chenweijian's avatar
chenweijian committed
26 27
	Avatar      string `json:"avatar"`
	ExternalId  string `json:"externalId"`
chenweijian's avatar
chenweijian committed
28 29 30 31 32
}

type InviteApplyNumRes struct {
	Type int `json:"type"` // 1.已申请2.待审核3.已通过4.已拒绝"
	Num  int `json:"num"`
chenweijian's avatar
chenweijian committed
33
}
chenweijian's avatar
chenweijian committed
34 35 36 37 38 39 40 41 42

type AgentPeriod struct {
	Week []AgentPeriodWeek `json:"week"`
}

type AgentPeriodWeek struct {
	StartDate string `json:"startDate"`
	EndDate   string `json:"endDate"`
}