-
Notifications
You must be signed in to change notification settings - Fork 0
/
constant.go
81 lines (74 loc) · 2.3 KB
/
constant.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
package wemeet
// Entrance
const (
ApiHost = "https://api.meeting.qq.com/v1"
)
// 企业用户管理
const (
DisableRegistered = iota
EnableRegistered
)
// 会议角色
const (
MeetingRoleCreator = "creator" // 创建者
MeetingRoleHost = "host" // 主持人
MeetingRoleInvitee = "invitee" // 被邀请者
)
// 会议类型
const (
MeetingTypeBookingMeeting = iota // 预约会议类型
MeetingTypeQuickMeeting // 快速会议类型
)
// 设备类型
const (
InstancePC = iota + 1
InstanceMac
InstanceAndroid
InstanceIOS
InstanceWeb
InstanceIPad
InstanceAndroidPad
InstanceMicroProgram
)
// 错误码: https://cloud.tencent.com/document/product/1095/43704
const (
ErrTinyIdOrMeetingId = 9002
ErrMeetingNotExists = 9003
ErrMeetingCreateExceed = 9008
ErrNoPermission = 9042
ErrMeetingQueryExceed = 9061
ErrApiCallUnknownType = 10000
ErrApiCallBadParameter = 10001
ErrAppVersionForbidden = 10005
ErrUserAlreadyExists = 20002
ErrUserUnavailable = 20003
ErrInvalidPhone = 40000
ErrInvalidEmail = 41001
ErrEmailUsed = 41002
ErrPhoneUsed = 41003
ErrCorpID = 50000
ErrCorpUnavailable = 50001
ErrCancelMeetingDestroyed = 13603
ErrXTcTimestamp = 190300
ErrRequestReplay = 190301
ErrUnauthenticatedSecret = 190303
ErrCallMinuteExceed = 190310
ErrCallDayExceed = 190311
ErrCallParticularDayExceed = 190312
ErrApiRequiredInfoNotFound = 200001
ErrApiReplay = 200002
ErrApiBadSignature = 200003
ErrApiNotSupportRequest = 200004
ErrJsonSchemeInvalid = 200005
ErrApiBadRequestParameter = 200006
)
// 会议状态
const (
MeetingStateInvalid = "MEETING_STATE_INVALID" // 非法或未知的会议状态,错误状态
MeetingStateInit = "MEETING_STATE_INIT" // 会议的初始状态,表示还没有人入会
MeetingStateCancelled = "MEETING_STATE_CANCELLED" // 会议已取消
MeetingStateStarted = "MEETING_STATE_STARTED" // 会议已开始,有人入会
MeetingStateEnded = "MEETING_STATE_ENDED" // 会议已结束
MeetingStateRecycled = "MEETING_STATE_RECYCLED" // 会议号已被回收
MeetingStateNull = "MEETING_STATE_NULL" // 未知状态
)