enum.go 3.87 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 25 26 27 28 29 30 31 32 33 34 35 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 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178
package mgr_e

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

type MgrType mysql.Type

const (
	//主账号
	MainAccountMgrType MgrType = 1
	//次账号
	SubAccountMgrType MgrType = 2
)

type ReportPageType mysql.Type

const (
	VedioPageType        ReportPageType = 1
	UserInfoPageType     ReportPageType = 2
	SessionPageType      ReportPageType = 3
	MatchHistroyPageType ReportPageType = 4
	GroupPageType        ReportPageType = 5
)

type ReportStatus mysql.Type

const (
	//未处理
	NoDealReportStatus ReportStatus = 1
	//已处理
	HasDealReportStatus ReportStatus = 2
)

type ReportReasonType mysql.Type

const (
	//语言骚扰
	VerbalHarassment ReportReasonType = 1
	Nudity           ReportReasonType = 2
	IndecentMsg      ReportReasonType = 3
	IndecentPic      ReportReasonType = 4
	//11.在多个房间骚扰 12.侵犯他人隐私 13.色情暴力内容 14.损害官方利益
)

//用户状态
type UserStatus mysql.Type

const (
	//正常
	NomalUserStatus UserStatus = 1
	//冻结
	FreezeUserStatus UserStatus = 2
)

//报告处理类型
type MgrDealType = mysql.Type

const (
	//忽略
	IgnoreDealType MgrDealType = 1
	//冻结24小时
	FreezeDealType24 MgrDealType = 2
	//冻结72小时
	FreezeDealType72 MgrDealType = 3
	//冻结30小时
	FreezeDealType720 MgrDealType = 4
	//冻结永久
	FreezeDealTypeForever MgrDealType = 10
	//解除封禁
	CancelFreezeDealType MgrDealType = 11
	//删除图片
	DelUserAvatar MgrDealType = 12
	//冻结7天(168小时)
	FreezeDealType168 MgrDealType = 13
)

var MgrDealTypeDesc = map[MgrDealType]string{
	FreezeDealType24:      "封锁24小时",
	FreezeDealType72:      "封锁72小时",
	FreezeDealType168:     "封锁7天",
	FreezeDealType720:     "封锁30天",
	FreezeDealTypeForever: "永久封锁",
}

//报告处理原因类型
type MgrDealReasonType = mysql.Type

const (
	//无
	None MgrDealReasonType = 1
	//色情性
	Pornographic MgrDealReasonType = 2
	//侮辱谩骂
	Insult MgrDealReasonType = 3
	//不尊重宗教
	Religion MgrDealReasonType = 4
	//恐怖活动
	Terrorism MgrDealReasonType = 5
	//违法违规
	BreakingLaw MgrDealReasonType = 6
	//宣传其它APP
	OtherApp MgrDealReasonType = 7
	// 在多个房间骚扰
	RoomBother MgrDealReasonType = 11
	// 侵犯他人隐私
	PrivacyBad MgrDealReasonType = 12
	// 色情暴力内容
	SexViolence MgrDealReasonType = 13
	// 损害官方利益
	OfficialEffect MgrDealReasonType = 14
)

var MgrDealReasonTypeDesc = map[MgrDealReasonType]string{
	Pornographic:   "色情性",
	Insult:         "侮辱谩骂",
	Religion:       "不尊重宗教",
	Terrorism:      "恐怖活动",
	BreakingLaw:    "违法违规",
	OtherApp:       "宣传其它APP",
	RoomBother:     "在多个房间骚扰",
	PrivacyBad:     "侵犯他人隐私",
	SexViolence:    "色情暴力内容",
	OfficialEffect: "损害官方利益",
}

type MgrOriginType = mysql.Type

const (
	//报告
	ReportOriginType MgrOriginType = 1
	//用户页面
	UserOriginType MgrOriginType = 2
)

//管理人钻石发放单子状态
type MgrSendDiamondBillStatus = mysql.Type

const (
	NoSend  MgrSendDiamondBillStatus = 1
	HasSend MgrSendDiamondBillStatus = 2
)

//管理人发钻石详情状态
type MgrSendDiamondBillDetailType = mysql.Type

const (
	//活动扶持
	ActivitySupport MgrSendDiamondBillDetailType = 1
	//活动奖励
	ActivityAward MgrSendDiamondBillDetailType = 2
)

type MgrSendDiamondBillDetailStatus = mysql.Type

const (
	//还没发奖
	NoSendDetailStatus MgrSendDiamondBillDetailStatus = 1
	//发奖成功
	SendSuccessDetailStatus MgrSendDiamondBillDetailStatus = 2
	//发奖失败
	SendFailDetailStatus MgrSendDiamondBillDetailStatus = 3
)

type OpenScreenType = mysql.Type

const (
	CommonOpenScreenType OpenScreenType = 0
	CpScreenType         OpenScreenType = 1
	WeekScreenType       OpenScreenType = 2
)

type TypeMgrImeiLog = mysql.Type

const (
	AddMgrImeiLog TypeMgrImeiLog = 1
	DelMgrImeiLog TypeMgrImeiLog = 2
)

var OperationLogKey = "operationLogKey"