-
Notifications
You must be signed in to change notification settings - Fork 0
/
const.go
110 lines (93 loc) · 1.87 KB
/
const.go
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
package protocol
type OpenDiceType int
//登录状态
const (
LoginStatusSucc = 1
LoginStatusFail = 2
)
const (
ActionNewAccountSignIn = "accountLogin"
ActionGuestSignIn = "anonymousLogin"
ActionOldAccountSignIn = "oldAccountLogin"
ActionWebChatSignIn = "webChatSignIn"
ActionPhoneNumberRegister = "phoneRegister"
ActionNormalRegister = "normalRegister"
ActionGetVerification = "getVerification"
ActionAccountRegister = "accountRegister"
)
const (
LoginTypeAuto = "auto"
LoginTypeManual = "manual"
)
const (
VerificationTypeRegister = "register"
VerificationTypeFindPW = "findPW"
)
// 匹配类型
const (
MatchTypeClassic = 1 //经典
MatchTypeDaily = 3 //每日匹配
)
const (
CoinTypeSliver = 0 //银币
CoinTypeGold = 1 //金币
)
const (
RoomTypeClassic = 0
RoomTypeDailyMatch = 1
RoomTypeMonthlyMatch = 2
RoomTypeFinalMatch = 3
)
const (
DailyMatchLevelJunior = 0
DailyMatchLevelSenior = 1
DailyMatchLevelMaster = 2
)
const (
ClassicLevelJunior = 0
ClassicLevelMiddle = 1
ClassicLevelSenior = 2
ClassicLevelElite = 3
ClassicLevelMaster = 4
)
const (
ExitTypeExitDeskUI = -1
ExitTypeDissolve = 6
ExitTypeSelfRequest = 0
ExitTypeClassicCoinNotEnough = 1
ExitTypeDailyMatchEnd = 2
ExitTypeNotReadyForStart = 3
ExitTypeChangeDesk = 4
ExitTypeRepeatLogin = 5
)
const (
DeskStatusZb = 1
DeskStatusDq = 2
DeskStatusPlaying = 3
DeskStatusEnded = 4
)
const (
OpenTypeWin OpenDiceType = iota
OpenTypeLose
)
const (
SexTypeUnknown = 0
SexTypeMale = 1
SexTypeFemale = 2
)
const (
UserTypeGuest = 0
UserTypeLaoBaShi = 1
)
// OpType
const (
OptypeIllegal = 0
OptypeCall = 1
OptypeOpen = 2
OptypePass = 3
)
// 创建房间频道选项
const (
ChannelOptionAll = "allChannel"
ChannelOptionHalf = "halfChannel"
)