enum.go 3.88 KB
Newer Older
chenweijian's avatar
chenweijian 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
package group_e

import "hilo-user/resource/mysql"

// 信令消息(不显示公屏工,不记入消息历史,不影响未读数)
type TypeSignalMsg = mysql.Type

const (
	GroupEditProfileSignal    TypeSignalMsg = 1
	GroupRoleChangeSignal     TypeSignalMsg = 2
	GroupMicChangeSignal      TypeSignalMsg = 3 //保留
	GroupMsgBannedSignal      TypeSignalMsg = 4
	GroupMemberRemoveSignal   TypeSignalMsg = 5
	GroupGiftSignal           TypeSignalMsg = 6 //礼物
	GroupMicInSignal          TypeSignalMsg = 7
	GroupMicOutSignal         TypeSignalMsg = 8
	GroupMicLockSignal        TypeSignalMsg = 9
	GroupMicUnLockSignal      TypeSignalMsg = 10
	GroupMicSpeechOpenSignal  TypeSignalMsg = 11
	GroupMicSpeechCloseSignal TypeSignalMsg = 12
	GroupKickOut              TypeSignalMsg = 13 //保留
	GroupSocketMicOutSignal   TypeSignalMsg = 14 //保留
	GroupInviteMicInSignal    TypeSignalMsg = 15 //邀请上麦保留
	GroupInSignal             TypeSignalMsg = 16 //进入房间
	GroupMicEmoji             TypeSignalMsg = 17 //麦上表情
	GroupLuckyWheel           TypeSignalMsg = 18 //转盘的通知信令
	GroupOutSignal            TypeSignalMsg = 19 //离开房间
	GroupRocketState          TypeSignalMsg = 20 //火箭状态变化
	GroupOnlineUser           TypeSignalMsg = 21 //房间在线用户信息
	GroupMicChange            TypeSignalMsg = 22 //房间麦位上的变量
	GroupMemberInvite         TypeSignalMsg = 23 //房间-邀请用户成为会员
	GroupRoleChange           TypeSignalMsg = 24 //房间-用户群组身份变化

	GroupGameInfoLudo   TypeSignalMsg = 200 // 房间-游戏信息-ludo
	GroupGameSettleLudo TypeSignalMsg = 201 // 房间-游戏结算信息-ludo
	GroupGameInfoUno    TypeSignalMsg = 202 // 房间-游戏信息-uno
	GroupGameSettleUno  TypeSignalMsg = 203 // 房间-游戏结算信息-uno
)

// 群组麦位数量类型
type GroupMicNumType = mysql.Type

const (
	OneMicNumType       GroupMicNumType = 5
	TwoMicNumType       GroupMicNumType = 10
	ThreeMicNumType     GroupMicNumType = 3
	FourMicNumType      GroupMicNumType = 4
	SixMicNumType       GroupMicNumType = 6
	SevenMicNumType     GroupMicNumType = 7
	EightMicNumType     GroupMicNumType = 8
	NineMicNumType      GroupMicNumType = 9
	ElevenMicNumType    GroupMicNumType = 11
	TwelveMicNumType    GroupMicNumType = 12
	ThirteenMicNumType  GroupMicNumType = 13
	FourteenMicNumType  GroupMicNumType = 14
	FifteenMicNumType   GroupMicNumType = 15
	SixteenMicNumType   GroupMicNumType = 16
	SeventeenMicNumType GroupMicNumType = 17
	EighteenMicNumType  GroupMicNumType = 18
	NineteenMicNumType  GroupMicNumType = 19
	TwentyMicNumType    GroupMicNumType = 20
	//5个麦位
	FiveMicNumType GroupMicNumType = 1
	//10个麦位
	TenMicNumType GroupMicNumType = 2
	//
)

// 公屏消息
type TypePublicScreenMsg = mysql.Type

const (
	UserJoinPublicScreenMsg     TypePublicScreenMsg = 1  // 加入群组
	UserKickPublicScreenMsg     TypePublicScreenMsg = 2  // 踢出房间
	UserBannedPublicScreenMsg   TypePublicScreenMsg = 3  // 拉黑用户
	RoleAssignedPublicScreenMsg TypePublicScreenMsg = 4  // 添加角色
	RoleRemovedPublicScreenMsg  TypePublicScreenMsg = 5  // 移除角色
	ClientSendMsgLocal          TypePublicScreenMsg = 6  // 客户端占用
	RollDiceMsg                 TypePublicScreenMsg = 7  // 掷骰子结果
	GroupGiftMsg                TypePublicScreenMsg = 8  //全服礼物
	GroupSupportH5              TypePublicScreenMsg = 9  //群组支持H5
	JumpMessage                 TypePublicScreenMsg = 10 // 可跳转的公屏消息
	RocketAwardMsg              TypePublicScreenMsg = 11 // 火箭获奖消息
	LockyboxAwardMsg            TypePublicScreenMsg = 12 // 幸运盒子公屏中奖
	FruitMachineAwardMsg        TypePublicScreenMsg = 13 // 水果机中奖
	EnterRoomMsg                TypePublicScreenMsg = 14 // 用户进入房间

	GameLudoPubMsg TypePublicScreenMsg = 101 // Ludo游戏公屏
	GameUnoPubMsg  TypePublicScreenMsg = 102 // uno游戏公屏
)