invite_apply.go 1.37 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
	List    []*InviteApply       `json:"list"`
	NumList []*InviteApplyNumRes `json:"numList"`
chenweijian's avatar
chenweijian committed
16
	MyCode  string               `json:"myCode"`
chenweijian's avatar
chenweijian committed
17 18 19 20 21 22 23 24 25 26
}

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
27 28
	Avatar      string `json:"avatar"`
	ExternalId  string `json:"externalId"`
chenweijian's avatar
chenweijian committed
29
	Reason      int    `json:"reason"` // 1.已申请2.待审核3.已通过4.已拒绝"
chenweijian's avatar
chenweijian committed
30 31 32 33 34
}

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

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

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