user.go 1.07 KB
Newer Older
chenweijian's avatar
chenweijian committed
1 2
package user_e

hujiebin's avatar
hujiebin committed
3 4 5
import (
	"git.hilo.cn/hilo-common/resource/mysql"
)
chenweijian's avatar
chenweijian committed
6 7 8 9 10 11 12 13 14 15 16

type ThirdPartyType = mysql.Type

const (
	Phone    ThirdPartyType = 1
	Google   ThirdPartyType = 2
	Facebook ThirdPartyType = 3
	Apple    ThirdPartyType = 4
	WeChat   ThirdPartyType = 5
)

hujiebin's avatar
hujiebin committed
17 18 19 20 21 22 23 24 25 26 27
type CountType mysql.Type

const (
	//我喜欢的数量
	CountTypeLike CountType = 1
	//我拉黑的数量
	CountTypeBlock CountType = 2
	//我被喜欢的次数
	CountTypeLikeMe CountType = 3
)

chenweijian's avatar
chenweijian committed
28 29 30 31 32 33 34 35 36 37 38 39
type UserStatus mysql.Type

const (
	//正常
	UserStatusNormal UserStatus = 1
	//冻结
	UserStatusFrozen UserStatus = 2
)

type UserVipType = mysql.Type

const (
hujiebin's avatar
hujiebin committed
40 41 42 43
	//购买
	UserVipTypeBuy UserVipType = 1
	//赠送
	UserVipTypeGive UserVipType = 2
chenweijian's avatar
chenweijian committed
44
)
hujiebin's avatar
hujiebin committed
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69

type UserLikeOperateType = mysql.Type

const (
	//增加喜欢
	LikeAdd UserLikeOperateType = 1
	//取消喜欢
	LikeCancel UserLikeOperateType = 2
)

type UserLikeSceneType = mysql.Type

const (
	Match UserLikeSceneType = 1
	Video UserLikeSceneType = 2
)

type InteractionType = mysql.Type

const (
	InteractPrivateGift InteractionType = 1
	InteractVideo       InteractionType = 2
)