package friend import ( "gitee.ltd/lxh/xybot/core" "github.com/go-resty/resty/v2" ) type API interface { AcceptFriend(scene int, v1, v2 string) (err error) // 接受好友请求 GetContact(wxIds []string) (contactList []ContactListItem, err error) // 通过wxid获取联系人详情 GetContractDetail(wxIds []string) (contactList []ContactListItem, err error) // 获取联系人详情 GetContractList(clearSystemAccount bool) (wxIds []string, 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} }