enum.go 4.16 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
package msg_e

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

//消息发送类型,消息接收者是谁 1:通知 2:官网 3:被喜欢通知 (注意:MsgReceiveType 同 MsgUserRecordType 不是树形关系s)
//MsgReceive 结构体服务
type MsgReceiveType = mysql.Type

const (
	//小助手的通知
	UserMsgReceiveType MsgReceiveType = 1
	//系统的通知
	SysMsgReceiveType MsgReceiveType = 2
	//喜欢消息
	LikeMeReceiveType MsgReceiveType = 3
	//工会用户通知
	TradeUnionReceiveType MsgReceiveType = 4
	//用户召回
	UserRecall MsgReceiveType = 5
	//video请求
	VideoSend MsgReceiveType = 6
	//访问
	VisitReceiveType MsgReceiveType = 7
	//拉黑
	BlockReceiveType MsgReceiveType = 8
	//短信验证码
	SmsCode MsgReceiveType = 9
)

//跳转类型 0:无调整 1:网页跳转 2:app跳转 3:跳转到钻石 4:跳转到背包
type ActionType = uint16

const (
	NonActionType ActionType = 0
	WebActionType ActionType = 1
	AppActionType ActionType = 2
)

//消息记录类型(设计的不好,应该是根据消息样式类型设计,而不是业务类型,渣渣)
type MsgUserRecordType = mysql.Type

const (
	//新用户
	//NewUserType MsgUserRecordType = 1
	//举报
	ReportType MsgUserRecordType = 2
	//喜欢我
	//LikeMeType MsgUserRecordType = 3
	//重置图片
	ResetAvatarType MsgUserRecordType = 4
	//
	//喜欢我
	LikeMeType MsgUserRecordType = 5
	//访问
	VisitType MsgUserRecordType = 6
	//新匹配记录
	MatchHistoryType MsgUserRecordType = 7
	//互相喜欢
	LikeEachType MsgUserRecordType = 8
	//你获得s%钻石的礼物收益!
	DiamondIncome MsgUserRecordType = 9
	//榜单结果
	ActivityBillboardResult MsgUserRecordType = 10
	//榜单钻石收益
	ActivityBillboardDiamond MsgUserRecordType = 11
	//榜单坐骑收益
	ActivityBillboardProperty MsgUserRecordType = 12
	//通过收礼物获得豆子
	ActivityBeanProperty MsgUserRecordType = 13
	//管理人送钻石
	MgrSendDiamondProperty MsgUserRecordType = 14
	//群组榜单钻石收益
	ActivityGroupBillboardDiamond MsgUserRecordType = 15
	//群组榜单坐骑收益
	ActivityGroupBillboardProperty MsgUserRecordType = 16
	//群组支持收益
	GroupSupport MsgUserRecordType = 17
	//群组支持提醒结果
	GroupSupportResult MsgUserRecordType = 18
	//管理人送座驾
	MgrSendProperty MsgUserRecordType = 19
	//送道具(座驾,头饰都属于道具)
	AddProps MsgUserRecordType = 20
	//MISS活动获胜
	ActivityBillboardBeLikeResult = 21
	//CP活动获胜
	ActivityBillboardCpResult = 22
	//加入势力主
	GroupPowerUserJoin = 23
	//离开势力主
	GroupPowerUserLeave = 24
	//贵族
	AddNoble = 25
	//日充值活动通知
	ActivityTriggerDayPay = 26
	//也门活动通知
	ActivityTriggerYemen = 27
	//月充值活动通知
	ActivityTriggerMonthPay  = 28
	FruitTycoonAward         = 29 // 水果大亨获奖
	LuckyboxRecycle          = 30 //幸运盒子回收
	HlTemp1                  = 31 //产品黄蕾,2022/06/29 临时要求发给某人的小助手消息
	HLTemp2                  = 32 //问卷调查
	NewUserInviteAuditPassed = 33 // 新用户奖励活动审核通过
	NewUserInviteAuditFailed = 34 // 新用户奖励活动审核不通过
	NewUserInviterAward      = 35 // 新用户奖励活动邀请成功数达标
	PowerSupportSalary       = 36 // 势力扶持工资领取 提醒
	CountryStarOrdinaryAward = 37 // 国家之星瓜分奖提醒
	GroupActivityRewardMsg   = 38 // 群组活动钻石奖励提醒
	TemplateActAwardMsg      = 39 // 通用模板活动奖励提醒
	TemplateSmsCode          = 40 // 通用模板活动奖励提醒
	AddUserBag               = 50 // 赠送背包礼物
113
	GemAward                 = 58 // 粉钻奖励
hujiebin's avatar
hujiebin committed
114
	RaceWeekMedal            = 65 // 赛车周榜勋章
hujiebin's avatar
hujiebin committed
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
)

type MsgSysUserType = mysql.Type

const (
	//系统消息
	SysType MsgSysUserType = 1
	//小助手消息
	AssistantType MsgSysUserType = 2
)

//resMsgTransalte 中 msg_type 同 type, msg_type是属于一级类型 type属于二级类型。 msg_type 对应MsgReceiveType type:部分对应MsgUserRecordType MsgUserRecordType(应该是小助手的类型)
type MsgSysRecordType = mysql.Type

const (
	//这个值木有意义,
	SysMsgSysRecordType1 MsgSysRecordType = 1
	SysMsgSysRecordType2 MsgSysRecordType = 2
)