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

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