Skip to content

Commit

Permalink
SystemOauthTokenRsp 调整
Browse files Browse the repository at this point in the history
  • Loading branch information
smartwalle committed Nov 17, 2023
1 parent 29784af commit 6d22b81
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions authorize_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,14 @@ type SystemOauthTokenRsp struct {
OpenId string `json:"open_id"`
}

func (s *SystemOauthTokenRsp) IsSuccess() bool {
return s.AccessToken != "" && s.UserId != ""
}

func (s *SystemOauthTokenRsp) IsFailure() bool {
return s.AccessToken == "" || s.UserId == ""
}

// UserInfoShare 支付宝会员授权信息查询接口请求参数 https://docs.open.alipay.com/api_2/alipay.user.info.share
type UserInfoShare struct {
AuxParam
Expand Down

0 comments on commit 6d22b81

Please sign in to comment.