20 lines
414 B
Go
20 lines
414 B
Go
package hongbao
|
|
|
|
import (
|
|
"gitee.ltd/lxh/xybot/core"
|
|
"github.com/go-resty/resty/v2"
|
|
)
|
|
|
|
type API interface {
|
|
GetHongBaoDetail(xml, encryptKey, encryptUserinfo string) (resp any, 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}
|
|
}
|