feat: support workspace

This commit is contained in:
Rogee
2024-11-28 09:17:16 +08:00
parent 301879ca39
commit c06fc4c04a
13 changed files with 10 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
}