enum.go 5.21 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
package group_e

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

type MsgStatusGroupUser = mysql.Type

const (
	//正常: 灰点+震动
	NormalMsgStatusGroupUser MsgStatusGroupUser = 0
	//静音:灰点
	MuteMsgStatusGroupUser MsgStatusGroupUser = 1
	//免打扰:什么也没有
	DoNotDisturbMsgStatusGroupUser MsgStatusGroupUser = 2

	OverseaRoom = 1
	LocalRoom   = 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 // 用户进入房间
)

// 信令消息(不显示公屏工,不记入消息历史,不影响未读数)
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 //房间-用户群组身份变化
	GroupClearScreen          TypeSignalMsg = 25 //房间-清理公屏
)

//群组麦位数量类型
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
	//

	SUPPORT_LEVEL_BOUNDARY_HOUR = 0
	SUPPORT_LEVEL_PERIOD_DAY    = 7
)

type GroupRoleType = uint16

const (
	// 群组角色
	GROUP_VISITOR GroupRoleType = 0   // 游客
	GROUP_MEMBER  GroupRoleType = 1   // 成员
	GROUP_ADMIN   GroupRoleType = 10  // 管理员
	GROUP_MANAGER GroupRoleType = 50  // 经理
	GROUP_OWNER   GroupRoleType = 100 // owner
)

// 群组内游戏相关
const (
	GROUP_DICE_NUM_DEFAULT = 5
	GROUP_DICE_NUM_MAX     = 5
)

const DefaultMsgParallelSize = 20
const (
	CREATE_GROUP_MAX_ATTEMPT = 10
	NewGroupNamePrefix       = "HTGS#"
	OverseaGroupNamePrefix   = NewGroupNamePrefix + "a"
)

var GROUP_RECOMMEND_SIZE = 5
var GROUP_CREATE_LIMIT = 1
var GROUP_DEFAULT_CODE_LENGTH uint16 = 8

const (
	// 上下架状态
	SWITCH_ON = 1
	SWITH_OFF = 0
)
hujiebin's avatar
hujiebin committed
135 136

var GROUP_ROLE_VIEW_LIMIT = 10
hujiebin's avatar
hujiebin committed
137 138 139 140 141
var GROUP_INTRODUCTION_LENGTH_LIMIT = 500

const ROOM_PASSWORD_LENGTH = 4
const SETTING_CUSTOMIZED = 2
const SETTING_OFFICIAL = 1
142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157

type AddGroupResultType = uint

const (
	ADD_GROUP_DONE      AddGroupResultType = 1
	ADD_GROUP_DUPLICATE AddGroupResultType = 2
	ADD_GROUP_PENDING   AddGroupResultType = 3
	ADD_GROUP_FAILED    AddGroupResultType = 0
)

var GROUP_DEFAULT_JOIN_LIMIT uint = 200
var GROUP_VIP_JOIN_LIMIT uint = 500
var GROUP_NOBLE4_JOIN_LIMIT uint = 1000
var GROUP_ROLE_PERSONAL_VIEW_LIMIT = 5
var GROUP_MANAGER_LIMIT uint = 30
var GROUP_ADMIN_LIMIT uint = 50