xybot/user/api.go
2025-04-17 14:59:55 +08:00

21 lines
371 B
Go

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