feat: wechat provider

This commit is contained in:
Rogee
2024-11-29 15:38:57 +08:00
parent 391f217bd8
commit aa7ad01ecc
9 changed files with 473 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
package wechat
type Response struct {
ErrCode int `json:"errcode"`
ErrMsg int `json:"errmsg"`
ErrDescribe int `json:"-"`
}
func (r *Response) Error() error {
return translateError(r.ErrCode)
}
type AccessTokenResponse struct {
AccessToken string `json:"access_token"`
ExpiresIn int `json:"expires_in"` // seconds
}