20 lines
352 B
Go
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,
|
|
}
|
|
}
|