xybot/hongbao/api.go

16 lines
302 B
Go

package hongbao
import "github.com/go-resty/resty/v2"
type API interface {
GetHongBaoDetail(xml, encryptKey, encryptUserinfo string) (resp any, err error) // 获取红包详情
}
type service struct {
client *resty.Client
}
func New(client *resty.Client) API {
return &service{client: client}
}