-
Notifications
You must be signed in to change notification settings - Fork 3
/
oa_web_apps.go
44 lines (39 loc) · 1.13 KB
/
oa_web_apps.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
package mp_api
type OaWebAppsSnsAuth2AccessTokenQuery struct {
AppId string `url:"appid"`
Secret string `url:"secret"`
Code string `url:"code"`
GrantType string `url:"grant_type"`
}
type OaWebAppsSnsAuth2AccessTokenRes struct {
MpBaseResp
AccessToken string `json:"access_token"`
ExpireIn int64 `json:"expire_in"`
RefreshToken string `json:"refresh_token"`
OpenId string `json:"openid"`
Scope string `json:"scope"`
}
type OaWebAppsSnsUserInfoQuery struct {
OpenId string `url:"openid"`
Lang string `url:"lang"`
}
type OaWebAppsSnsUserInfoRes struct {
MpBaseResp
OpenId string `json:"openid"`
NickName string `json:"nickname"`
Sex int64 `json:"sex"`
Province string `json:"province"`
City string `json:"city"`
Country string `json:"country"`
HeadImgUrl string `json:"headimgurl"`
Privilege []string `json:"privilege"`
UnionId string `json:"unionid"`
}
type OaWebAppsJsSDKTicketQuery struct {
Type JsSDKTicketType `url:"type"`
}
type OaWebAppsJsSDKTicketRes struct {
MpBaseResp
Ticket string `json:"ticket"`
ExpiresIn int64 `json:"expires_in"`
}