-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
modify service authen
- Loading branch information
zhaomingqiang
committed
Nov 15, 2020
1 parent
42d8031
commit d6b4867
Showing
8 changed files
with
99 additions
and
1,007 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
package v1 | ||
|
||
type AccessTokenReqBody struct { | ||
GrantType string `json:"grant_type"` | ||
Code string `json:"code"` | ||
type AuthenAccessTokenReqBody struct { | ||
GrantType string `json:"grant_type,omitempty"` | ||
Code string `json:"code,omitempty"` | ||
} | ||
|
||
type RefreshAccessTokenReqBody struct { | ||
GrantType string `json:"grant_type"` | ||
RefreshToken string `json:"refresh_token"` | ||
type AuthenRefreshAccessTokenReqBody struct { | ||
GrantType string `json:"grant_type,omitempty"` | ||
RefreshToken string `json:"refresh_token,omitempty"` | ||
} | ||
|
||
type AccessTokenResult struct { | ||
AccessToken string `json:"access_token"` | ||
AvatarUrl string `json:"avatar_url"` | ||
AvatarThumb string `json:"avatar_thumb"` | ||
AvatarMiddle string `json:"avatar_middle"` | ||
AvatarBig string `json:"avatar_big"` | ||
ExpiresIn int `json:"expires_in"` | ||
Name string `json:"name"` | ||
EnName string `json:"en_name"` | ||
OpenID string `json:"open_id"` | ||
UnionID string `json:"union_id"` | ||
UserID string `json:"user_id"` | ||
TenantKey string `json:"tenant_key"` | ||
RefreshExpiresIn int `json:"refresh_expires_in"` | ||
RefreshToken string `json:"refresh_token"` | ||
TokenType string `json:"token_type"` | ||
type UserAccessTokenInfo struct { | ||
AccessToken string `json:"access_token,omitempty"` | ||
AvatarUrl string `json:"avatar_url,omitempty"` | ||
AvatarThumb string `json:"avatar_thumb,omitempty"` | ||
AvatarMiddle string `json:"avatar_middle,omitempty"` | ||
AvatarBig string `json:"avatar_big,omitempty"` | ||
ExpiresIn int `json:"expires_in,omitempty"` | ||
Name string `json:"name,omitempty"` | ||
EnName string `json:"en_name,omitempty"` | ||
OpenId string `json:"open_id,omitempty"` | ||
UnionId string `json:"union_id,omitempty"` | ||
UserId string `json:"user_id,omitempty"` | ||
TenantKey string `json:"tenant_key,omitempty"` | ||
RefreshExpiresIn int `json:"refresh_expires_in,omitempty"` | ||
RefreshToken string `json:"refresh_token,omitempty"` | ||
TokenType string `json:"token_type,omitempty"` | ||
} | ||
|
||
type UserInfoResult struct { | ||
Name string `json:"name"` | ||
AvatarUrl string `json:"avatar_url"` | ||
AvatarThumb string `json:"avatar_thumb"` | ||
AvatarMiddle string `json:"avatar_middle"` | ||
AvatarBig string `json:"avatar_big"` | ||
Email string `json:"email"` | ||
OpenID string `json:"open_id"` | ||
UnionID string `json:"union_id"` | ||
UserID string `json:"user_id"` | ||
Mobile string `json:"mobile"` | ||
type UserInfo struct { | ||
Name string `json:"name,omitempty"` | ||
AvatarUrl string `json:"avatar_url,omitempty"` | ||
AvatarThumb string `json:"avatar_thumb,omitempty"` | ||
AvatarMiddle string `json:"avatar_middle,omitempty"` | ||
AvatarBig string `json:"avatar_big,omitempty"` | ||
Email string `json:"email,omitempty"` | ||
OpenId string `json:"open_id,omitempty"` | ||
UnionId string `json:"union_id,omitempty"` | ||
UserId string `json:"user_id,omitempty"` | ||
Mobile string `json:"mobile,omitempty"` | ||
} |
Oops, something went wrong.