package user import "github.com/go-resty/resty/v2" type API interface { GetMyQRCode() (str string, err error) // 获取个人二维码 GetProfile() (resp GetProfileResponse, err error) // 获取个人信息 } type service struct { client *resty.Client } func New(client *resty.Client) API { return &service{client: client} }