package user import ( "gitee.ltd/lxh/xybot/core" "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 robotInfo *core.RobotInfo } func New(client *resty.Client, robotInfo *core.RobotInfo) API { return &service{client: client, robotInfo: robotInfo} }