enum.go 1.69 KB
Newer Older
hujiebin's avatar
hujiebin committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
package groupPower_e

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

//国家势力状态
type GroupPowerStatus = mysql.Type

const (
	//上架
	GroupPowerUserHas GroupPowerStatus = 1
	//未上架
	GroupPowerUserNo GroupPowerStatus = 2
	//解散
	GroupPowerDissolve GroupPowerStatus = 3
)

//国家势力用户角色
type GroupPowerUserRole = mysql.Type

const (
	//普通用户
	GroupPowerUserRoleUser GroupPowerUserRole = 1
	//势力主
	GroupPowerUserRoleMgr GroupPowerUserRole = 2
hujiebin's avatar
hujiebin committed
25 26 27 28 29 30 31 32 33 34 35
	//势力管理员
	GroupPowerUserRoleAdmin GroupPowerUserRole = 3
)

//国家势力排行榜类型
type GroupPowerRankType = mysql.Type

const (
	GroupPowerRankTypeFamous GroupPowerRankType = 1
	GroupPowerRankTypeActive GroupPowerRankType = 2
	GroupPowerRankTypeCharm  GroupPowerRankType = 3
hujiebin's avatar
hujiebin committed
36 37 38 39 40 41 42 43 44 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 GroupPowerUserLogType = mysql.Type

const (
	//加入
	GroupPowerUserLogTypeUserJoin GroupPowerUserLogType = 1
	//用户自己离开
	GroupPowerUserLogTypeUserLeave GroupPowerUserLogType = 2
	//运营平台赋予管理者
	GroupPowerUserLogTypeOwerJoin GroupPowerUserLogType = 3
	//管理人让用户离开
	GroupPowerUserLogTypeMgrLeave GroupPowerUserLogType = 4
	//管理人解散
	GroupPowerUserLogDissolve GroupPowerUserLogType = 5
)

type GroupPowerDiamondLogType = mysql.Type

const (
	//群组原因加入
	GroupPowerDiamondLogTypeByGroup GroupPowerDiamondLogType = 1
	//群主原因加入
	GroupPowerDiamondLogTypeByGroupOwer GroupPowerDiamondLogType = 2
)

type PowerSupportAwardState = uint

const (
	PowerSuppportNo      PowerSupportAwardState = 0 // 未达到要求
	PowerSuppportAwarded PowerSupportAwardState = 1 // 已经领取
	PowerSuppportWaiting PowerSupportAwardState = 2 // 待领取
)