21 lines
395 B
Go
21 lines
395 B
Go
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
|
|
wxId string
|
|
}
|
|
|
|
func New(client *resty.Client, wxId string) API {
|
|
return &service{
|
|
client: client,
|
|
wxId: wxId,
|
|
}
|
|
}
|