-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathtype.go
97 lines (72 loc) · 2.24 KB
/
type.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
package d3auth
// "encoding/json"
//基本配置
type Auth_conf struct {
Appid string
Appkey string
Rurl string
}
//@ qq 结构 ------------------------------------------------- start
type Auth_qq struct {
Conf *Auth_conf
}
type Auth_qq_err_res struct {
Error int `json:"error"`
Error_description string `json:"error_description"`
}
type Auth_qq_me struct {
Client_ID string `json:"client_id"`
OpenID string `json:"openid"`
}
//@ qq 结构 ------------------------------------------------- end
//@ weibo 结构 ------------------------------------------------- start
type Auth_wb struct {
Conf *Auth_conf
}
type Auth_wb_err_res struct {
Error int `json:"error_code"`
Error_description string `json:"error"`
}
type Auth_wb_succ_res struct {
Access_Token string `json:"access_token"`
Openid string `json:"uid"`
}
//@ weibo 结构 ------------------------------------------------- end
//@ weixin 结构 ------------------------------------------------- start
type Auth_wx struct {
Conf *Auth_conf
}
type Auth_wx_err_res struct {
Error int `json:"errcode"`
Error_description string `json:"errmsg"`
}
type Auth_wx_succ_res struct {
Access_Token string `json:"access_token"`
Openid string `json:"openid"`
}
//@ weixin 结构 ------------------------------------------------- end
//@ github 结构 ------------------------------------------------- start
type Auth_github struct {
Conf *Auth_conf
}
type Auth_github_err_res struct {
Error int `json:"errcode"`
Error_description string `json:"errmsg"`
}
type Auth_github_succ_res struct {
Access_Token string `json:"access_token"`
Openid string `json:"openid"`
}
//@ github 结构 ------------------------------------------------- end
//@ gitee 结构 ------------------------------------------------- start
type Auth_gitee struct {
Conf *Auth_conf
}
type Auth_gitee_err_res struct {
Error int `json:"errcode"`
Error_description string `json:"errmsg"`
}
type Auth_gitee_succ_res struct {
Access_Token string `json:"access_token"`
}
//@ gitee 结构 ------------------------------------------------- end