-
Notifications
You must be signed in to change notification settings - Fork 0
/
model.go
54 lines (45 loc) · 1.87 KB
/
model.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
package gofcm
// CheckReqBody 请求体
type CheckReqBody struct {
AI string `json:"ai,omitempty"` // 游戏内部成员标识
Name string `json:"name,omitempty"` // 姓名
IdNum string `json:"idNum,omitempty"` // 身份证
}
// CheckRespBody check 和 query 的响应内容
type CheckRespBody struct {
ErrCode int `json:"errcode,omitempty"` // 状态码 0:成功; x>1000:失败;
ErrMsg string `json:"errmsg,omitempty"` // 状态描述
Data checkRespBody `json:"data,omitempty"`
}
type checkRespBody struct {
Result checkRespBodyResult `json:"result,omitempty"`
}
type checkRespBodyResult struct {
Status int `json:"status,omitempty"` // 0:认证成功; 1: 认证中; 2:认证失败;
Pi string `json:"pi,omitempty"` // 用户唯一标识
}
type LoginoutReqBody struct {
Collections []Collection `json:"collections,omitempty"`
}
type Collection struct {
No int `json:"no"` // 条码编码
Si string `json:"si"` // 游戏内部会话标识
Bt int `json:"bt"` // 用户行为类型 0:下线; 1:上线;
Ot int64 `json:"ot"` // 行为发生时间,单位秒
Ct int `json:"ct"` // 上报类型 0:已认证用户; 2: 游客用户
Di string `json:"di"` // 设备标识,游客用户必填
Pi string `json:"pi"` // 用户唯一标识 已认证用户必填
}
type LoginoutRespBody struct {
ErrCode int `json:"errcode,omitempty"` // 状态码 0:成功; x>1000:失败;
ErrMsg string `json:"errmsg,omitempty"` // 状态描述
Data *loginoutRespBody `json:"data,omitempty"`
}
type loginoutRespBody struct {
Result loginoutRespBodyResult `json:"result,omitempty"`
}
type loginoutRespBodyResult struct {
No int `json:"no,omitempty"` // 条目编码
Status int `json:"status,omitempty"` // 0:认证成功; 1: 认证中; 2:认证失败;
Pi string `json:"pi,omitempty"` // 用户唯一标识
}