添加eleme平台的api对接
This commit is contained in:
parent
ccfc4e154b
commit
001d22bbb7
71
README.md
71
README.md
@ -0,0 +1,71 @@
|
|||||||
|
# 第三方平台SDK
|
||||||
|
|
||||||
|
本sdk主要对接各个第三方平台的api(如美团、饿了么。。。), 内部的其他项目服务可以直接通过本sdk调用相应的第三方平台的api,而不用关心第三方平台的api调用细节。
|
||||||
|
本sdk只是对第三方api调用的封装,不涉及业务逻辑,具体的业务逻辑需要在调用方实现。
|
||||||
|
|
||||||
|
注意: 相同的业务接口(如获取订单信息),不同第三方平台的api返回的数据结构会有所不同,需要在业务服务中做不同平台数据的映射,本sdk不做数据映射。
|
||||||
|
|
||||||
|
## 1. 项目结构
|
||||||
|
|
||||||
|
```
|
||||||
|
third-party-sdk
|
||||||
|
├── README.md
|
||||||
|
├── client
|
||||||
|
│ └── http_client.go // http请求的client
|
||||||
|
├── platform // 第三方平台
|
||||||
|
│ ├── eleme-union // 饿了么联盟
|
||||||
|
│ ├── meituan-csr // 美团分销联盟
|
||||||
|
│ ├── meituan-union // 美团联盟
|
||||||
|
│ ├── api.go // 美团联盟api
|
||||||
|
│ ├── client.go // 美团联盟client
|
||||||
|
│ ├── consts.go // 常量
|
||||||
|
│ └── types.go // 结构体定义
|
||||||
|
├── sdk // 第三方平台的sdk包
|
||||||
|
├── util // 工具包
|
||||||
|
|
||||||
|
|
||||||
|
```
|
||||||
|
|
||||||
|
## 2. 使用
|
||||||
|
|
||||||
|
对接的不同第三方平台在platform目录下,不同的文件目录对应不同的平台,使用时只需要调用index.go文件中不同平台api的New...()方法,传入不同的AuthConf参数,即可调用相应的api。
|
||||||
|
|
||||||
|
示例如下:
|
||||||
|
```go
|
||||||
|
package main
|
||||||
|
import (
|
||||||
|
"context"
|
||||||
|
"github.com/zeromicro/go-zero/core/logx"
|
||||||
|
sdk "gitee.com/chengdu-lenntc/third-platform-sdk"
|
||||||
|
meituanapi "gitee.com/chengdu-lenntc/third-platform-sdk/platform/meituan-union"
|
||||||
|
)
|
||||||
|
|
||||||
|
type PromotionConf struct {
|
||||||
|
AppKey string
|
||||||
|
AppSecret string
|
||||||
|
Ext1 string
|
||||||
|
Ext2 string
|
||||||
|
Ext3 string
|
||||||
|
Ext4 string
|
||||||
|
}
|
||||||
|
|
||||||
|
// 美团联盟
|
||||||
|
func meituanUnion(ctx context.Context, c *PromotionConf) error {
|
||||||
|
// meituan union 的api client
|
||||||
|
client := sdk.NewMeituanUnionApi(logx.WithContext(ctx), meituanapi.AuthConfig{
|
||||||
|
SignKey: c.Ext1,
|
||||||
|
NotifyKey: c.Ext2,
|
||||||
|
})
|
||||||
|
params := meituanapi.GenerateLinkRequest{
|
||||||
|
// ...
|
||||||
|
}
|
||||||
|
url, err := client.GetLink(params)
|
||||||
|
if err != nil {
|
||||||
|
logx.Errorf("get meituan union link failed: %v", err)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
logx.Infof("get meituan union link success: %v", url)
|
||||||
|
return nil
|
||||||
|
}
|
||||||
|
|
||||||
|
```
|
||||||
20
api/api.go
20
api/api.go
@ -1,20 +0,0 @@
|
|||||||
package api
|
|
||||||
|
|
||||||
type PromotionSdk interface {
|
|
||||||
Sign(data map[string]interface{}) string //签名
|
|
||||||
GetLink(r *GetLinkRequest) (*GetLinkResponse, error) //推广取链
|
|
||||||
GetOrder(r *GetOrderRequest) (*GetOrderResponse, error) //拉取订单信息
|
|
||||||
}
|
|
||||||
|
|
||||||
type PromotionConf struct {
|
|
||||||
AppKey string
|
|
||||||
AppSecret string
|
|
||||||
Ext1 string
|
|
||||||
Ext2 string
|
|
||||||
Ext3 string
|
|
||||||
Ext4 string
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewPromotionSdk(sdk PromotionSdk) PromotionSdk {
|
|
||||||
return sdk
|
|
||||||
}
|
|
||||||
@ -1,51 +0,0 @@
|
|||||||
package api
|
|
||||||
|
|
||||||
type GetLinkRequest struct {
|
|
||||||
ActivityId string `json:"activity_id"` //活动ID
|
|
||||||
Position string `json:"position"` //推广位ID
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetLinkResponse struct {
|
|
||||||
H5 string `json:"h5"`
|
|
||||||
ShortLink string `json:"shortLink"`
|
|
||||||
DeepLink string `json:"deepLink"`
|
|
||||||
EvokeLink string `json:"evokeLink"`
|
|
||||||
WechatApplet string `json:"wechatApplet"`
|
|
||||||
WechatAppletQrcode string `json:"wechatAppletQrcode"`
|
|
||||||
AlipayApplet string `json:"alipayApplet"`
|
|
||||||
Tkl string `json:"tkl"`
|
|
||||||
Poster string `json:"poster"`
|
|
||||||
}
|
|
||||||
|
|
||||||
type GetOrderRequest struct {
|
|
||||||
OrderNo string `json:"orderNo"`
|
|
||||||
ActId string `json:"actId"`
|
|
||||||
StartTime int64 `json:"startTime"`
|
|
||||||
EndTime int64 `json:"endTime"`
|
|
||||||
Page int64 `json:"page"`
|
|
||||||
PageSize int64 `json:"pageSize"`
|
|
||||||
}
|
|
||||||
type OrderItem struct {
|
|
||||||
OrderNo string `json:"orderNo"` //订单号
|
|
||||||
ActId string `json:"actId"` //活动ID
|
|
||||||
ActName string `json:"actName"` //活动名称
|
|
||||||
Sid string `json:"sid"` //Sid
|
|
||||||
OrderTitle string `json:"orderTitle"` //订标题
|
|
||||||
Commission string `json:"commission"` //佣金
|
|
||||||
CommissionRate string `json:"commissionRate"` //佣金比率
|
|
||||||
OrderTime int64 `json:"orderTime"` //订单时间
|
|
||||||
PayTime int64 `json:"payTime"` //支付时间
|
|
||||||
ModifiedTime int64 `json:"modifiedTime"` //最后一次更新时间
|
|
||||||
OrderPrice string `json:"orderPrice"` //订单金额
|
|
||||||
PayPrice string `json:"payPrice"` //支付金额
|
|
||||||
RefundPrice string `json:"refundPrice"` //退款金额
|
|
||||||
RefundReason string `json:"refundReason"` //退款原因
|
|
||||||
Status string `json:"status"` //状态
|
|
||||||
Quantity int64 `json:"quantity"` //商品数量
|
|
||||||
AppKey string `json:"appKey"`
|
|
||||||
Ext string `json:"ext"` //拓展参数
|
|
||||||
}
|
|
||||||
type GetOrderResponse struct {
|
|
||||||
Total int64 `json:"total"`
|
|
||||||
List []*OrderItem `json:"list"`
|
|
||||||
}
|
|
||||||
@ -23,8 +23,8 @@ type HttpResponse struct {
|
|||||||
RespHeader *http.Header // 响应header
|
RespHeader *http.Header // 响应header
|
||||||
}
|
}
|
||||||
|
|
||||||
// ThirdClient 第三方平台的client
|
// HttpClient 第三方平台的http请求client
|
||||||
type ThirdClient interface {
|
type HttpClient interface {
|
||||||
// HttpGet GET请求
|
// HttpGet GET请求
|
||||||
HttpGet(url string, req *HttpRequest, resp *HttpResponse) error
|
HttpGet(url string, req *HttpRequest, resp *HttpResponse) error
|
||||||
// HttpPost POST请求
|
// HttpPost POST请求
|
||||||
@ -37,40 +37,40 @@ type ThirdClient interface {
|
|||||||
DoHttp(method string, url string, req *HttpRequest, resp *HttpResponse) error
|
DoHttp(method string, url string, req *HttpRequest, resp *HttpResponse) error
|
||||||
}
|
}
|
||||||
|
|
||||||
type ThirdClientImpl struct {
|
type httpClientImpl struct {
|
||||||
log logx.Logger
|
log logx.Logger
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewThirdClient(log logx.Logger) *ThirdClientImpl {
|
func NewHttpClient(log logx.Logger) HttpClient {
|
||||||
return &ThirdClientImpl{
|
return &httpClientImpl{
|
||||||
log: log,
|
log: log,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *ThirdClientImpl) HttpGet(url string, req *HttpRequest, resp *HttpResponse) error {
|
func (c *httpClientImpl) HttpGet(url string, req *HttpRequest, resp *HttpResponse) error {
|
||||||
return c.DoHttp(http.MethodGet, url, req, resp)
|
return c.DoHttp(http.MethodGet, url, req, resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *ThirdClientImpl) HttpPost(url string, req *HttpRequest, resp *HttpResponse) error {
|
func (c *httpClientImpl) HttpPost(url string, req *HttpRequest, resp *HttpResponse) error {
|
||||||
return c.DoHttp(http.MethodPost, url, req, resp)
|
return c.DoHttp(http.MethodPost, url, req, resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *ThirdClientImpl) HttpPut(url string, req *HttpRequest, resp *HttpResponse) error {
|
func (c *httpClientImpl) HttpPut(url string, req *HttpRequest, resp *HttpResponse) error {
|
||||||
return c.DoHttp(http.MethodPut, url, req, resp)
|
return c.DoHttp(http.MethodPut, url, req, resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *ThirdClientImpl) HttpDelete(url string, req *HttpRequest, resp *HttpResponse) error {
|
func (c *httpClientImpl) HttpDelete(url string, req *HttpRequest, resp *HttpResponse) error {
|
||||||
return c.DoHttp(http.MethodDelete, url, req, resp)
|
return c.DoHttp(http.MethodDelete, url, req, resp)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *ThirdClientImpl) DoHttp(method string, url string, req *HttpRequest, resp *HttpResponse) error {
|
func (c *httpClientImpl) DoHttp(method string, url string, req *HttpRequest, resp *HttpResponse) error {
|
||||||
// 发起请求
|
// 发起请求
|
||||||
reqConfig := &util.ReqConfig{
|
reqConfig := &util.ReqConfig{
|
||||||
Headers: req.Headers,
|
Headers: req.Headers,
|
||||||
QueryArgs: req.QueryArgs,
|
QueryArgs: req.QueryArgs,
|
||||||
BodyArgs: req.BodyArgs,
|
BodyArgs: req.BodyArgs,
|
||||||
}
|
}
|
||||||
hc := util.NewHttpClient(c.log).NewRequest(method, url, reqConfig).Do()
|
hc := util.NewHttpUtil(c.log).NewRequest(method, url, reqConfig).Do()
|
||||||
if hc.Error != nil {
|
if hc.Error != nil {
|
||||||
return hc.Error
|
return hc.Error
|
||||||
}
|
}
|
||||||
@ -81,7 +81,7 @@ func (c *ThirdClientImpl) DoHttp(method string, url string, req *HttpRequest, re
|
|||||||
// 检查http响应错误
|
// 检查http响应错误
|
||||||
if err := c.checkResponseError(hc.Response); err != nil {
|
if err := c.checkResponseError(hc.Response); err != nil {
|
||||||
c.log.WithFields([]logx.LogField{{Key: "method", Value: method}, {Key: "url", Value: url}, {Key: "reqConfig", Value: reqConfig}}...).
|
c.log.WithFields([]logx.LogField{{Key: "method", Value: method}, {Key: "url", Value: url}, {Key: "reqConfig", Value: reqConfig}}...).
|
||||||
Errorf("[ThirdClientImpl][DoHttp] checkResponseError err:%s", err)
|
Errorf("[httpClientImpl][DoHttp] checkResponseError err:%s", err)
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
// 获取响应结果
|
// 获取响应结果
|
||||||
@ -98,7 +98,7 @@ func (c *ThirdClientImpl) DoHttp(method string, url string, req *HttpRequest, re
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 检查http响应错误
|
// 检查http响应错误
|
||||||
func (c *ThirdClientImpl) checkResponseError(r *util.Response) error {
|
func (c *httpClientImpl) checkResponseError(r *util.Response) error {
|
||||||
if r.StatusCode >= 200 && r.StatusCode < 300 {
|
if r.StatusCode >= 200 && r.StatusCode < 300 {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
23
index.go
23
index.go
@ -1 +1,24 @@
|
|||||||
package third_platform_sdk
|
package third_platform_sdk
|
||||||
|
|
||||||
|
import (
|
||||||
|
"github.com/zeromicro/go-zero/core/logx"
|
||||||
|
|
||||||
|
elemeunion "gitee.com/chengdu-lenntc/third-platform-sdk/platform/eleme-union"
|
||||||
|
meituancsr "gitee.com/chengdu-lenntc/third-platform-sdk/platform/meituan-csr"
|
||||||
|
meituanunion "gitee.com/chengdu-lenntc/third-platform-sdk/platform/meituan-union"
|
||||||
|
)
|
||||||
|
|
||||||
|
// NewElemeUnionApi 饿了么联盟
|
||||||
|
func NewElemeUnionApi(log logx.Logger, conf elemeunion.AuthConfig) elemeunion.ElemeUnionApi {
|
||||||
|
return elemeunion.NewApiClient(log, conf)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewMeituanCsrApi 美团分销联盟
|
||||||
|
func NewMeituanCsrApi(log logx.Logger, conf meituancsr.AuthConfig) meituancsr.MeituanCsrApi {
|
||||||
|
return meituancsr.NewApiClient(log, conf)
|
||||||
|
}
|
||||||
|
|
||||||
|
// NewMeituanUnionApi 美团联盟
|
||||||
|
func NewMeituanUnionApi(log logx.Logger, conf meituanunion.AuthConfig) meituanunion.MeituanUnionApi {
|
||||||
|
return meituanunion.NewApiClient(log, conf)
|
||||||
|
}
|
||||||
|
|||||||
@ -2,40 +2,58 @@ package eleme_union
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/zeromicro/go-zero/core/logx"
|
"github.com/zeromicro/go-zero/core/logx"
|
||||||
|
|
||||||
|
"gitee.com/chengdu-lenntc/third-platform-sdk/sdk/topsdk/defaultability/request"
|
||||||
|
"gitee.com/chengdu-lenntc/third-platform-sdk/sdk/topsdk/defaultability/response"
|
||||||
|
"gitee.com/chengdu-lenntc/third-platform-sdk/sdk/topsdk/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// todo:: 调用第三方平台的api
|
// ElemeUnionApi 调用第三方平台的api
|
||||||
// Api defines the interface of eleme_union api
|
// Api defines the interface of eleme_union api
|
||||||
type Api interface {
|
type ElemeUnionApi interface {
|
||||||
Sign(data map[string]interface{}) string
|
// Sign 签名
|
||||||
GetLink() error
|
Sign(publicParam map[string]interface{}, data map[string]interface{}) string
|
||||||
GetOrder() error
|
// GetLink 获取推广链接
|
||||||
|
GetLink(req *request.AlibabaAlscUnionKbItemPromotionShareCreateRequest) (*response.AlibabaAlscUnionKbItemPromotionShareCreateResponse, error)
|
||||||
|
// GetOrders 获取推广订单
|
||||||
|
GetOrders(req *request.AlibabaAlscUnionKbcpaOrderDetailsGetRequest) (*response.AlibabaAlscUnionKbcpaOrderDetailsGetResponse, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
type ApiImpl struct {
|
type elemeUnionApiImpl struct {
|
||||||
log logx.Logger
|
log logx.Logger
|
||||||
client *Client
|
client *Client
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewApiImpl(log logx.Logger, client *Client) Api {
|
func newElemeUnionApiImpl(log logx.Logger, client *Client) ElemeUnionApi {
|
||||||
return &ApiImpl{
|
return &elemeUnionApiImpl{
|
||||||
log: log,
|
log: log,
|
||||||
client: client,
|
client: client,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo::
|
// Sign 签名
|
||||||
func (a *ApiImpl) Sign(data map[string]interface{}) string {
|
// @param publicParam 公共参数
|
||||||
|
// @param data 业务参数
|
||||||
return ""
|
func (a *elemeUnionApiImpl) Sign(publicParam map[string]interface{}, data map[string]interface{}) string {
|
||||||
|
return util.GetSign(publicParam, data, a.client.authConfig.AppSecret)
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo::
|
// GetLink 获取推广链接
|
||||||
func (a *ApiImpl) GetLink() error {
|
func (a *elemeUnionApiImpl) GetLink(req *request.AlibabaAlscUnionKbItemPromotionShareCreateRequest) (*response.AlibabaAlscUnionKbItemPromotionShareCreateResponse, error) {
|
||||||
return nil
|
resp, err := a.client.abilityClient.AlibabaAlscUnionKbItemPromotionShareCreate(req)
|
||||||
|
if err != nil {
|
||||||
|
a.log.WithFields(logx.LogField{Key: "req", Value: req}).Errorf("[elemeUnionApiImpl][GetLink] get link failed, error: %v", err)
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo::
|
// GetOrders 获取推广订单
|
||||||
func (a *ApiImpl) GetOrder() error {
|
func (a *elemeUnionApiImpl) GetOrders(req *request.AlibabaAlscUnionKbcpaOrderDetailsGetRequest) (*response.AlibabaAlscUnionKbcpaOrderDetailsGetResponse, error) {
|
||||||
return nil
|
resp, err := a.client.abilityClient.AlibabaAlscUnionKbcpaOrderDetailsGet(req)
|
||||||
|
if err != nil {
|
||||||
|
a.log.WithFields(logx.LogField{Key: "req", Value: req}).Errorf("[elemeUnionApiImpl][GetOrders] get orders failed, error: %v", err)
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
|
return resp, nil
|
||||||
}
|
}
|
||||||
|
|||||||
@ -5,39 +5,40 @@ import (
|
|||||||
|
|
||||||
"github.com/zeromicro/go-zero/core/logx"
|
"github.com/zeromicro/go-zero/core/logx"
|
||||||
|
|
||||||
"gitee.com/chengdu-lenntc/third-platform-sdk/client"
|
"gitee.com/chengdu-lenntc/third-platform-sdk/sdk/topsdk"
|
||||||
|
"gitee.com/chengdu-lenntc/third-platform-sdk/sdk/topsdk/defaultability"
|
||||||
"gitee.com/chengdu-lenntc/third-platform-sdk/util"
|
"gitee.com/chengdu-lenntc/third-platform-sdk/util"
|
||||||
)
|
)
|
||||||
|
|
||||||
// AuthConfig api鉴权参数
|
// AuthConfig api鉴权参数
|
||||||
type AuthConfig struct {
|
type AuthConfig struct {
|
||||||
|
AppKey string // 应用key
|
||||||
|
AppSecret string // 应用秘钥
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo:: 连接第三方平台的client
|
// 连接第三方平台的client
|
||||||
type Client struct {
|
type Client struct {
|
||||||
client.ThirdClient
|
topClient *topsdk.TopClient
|
||||||
log logx.Logger
|
abilityClient *defaultability.Defaultability
|
||||||
authConfig AuthConfig
|
log logx.Logger
|
||||||
|
authConfig AuthConfig
|
||||||
}
|
}
|
||||||
|
|
||||||
func NewClient(log logx.Logger, conf AuthConfig) *Client {
|
func NewApiClient(log logx.Logger, conf AuthConfig) ElemeUnionApi {
|
||||||
// todo:: 请求第三方平台的配置参数
|
clt := newClient(log, conf)
|
||||||
|
return newElemeUnionApiImpl(log, clt)
|
||||||
|
}
|
||||||
|
|
||||||
|
func newClient(log logx.Logger, conf AuthConfig) *Client {
|
||||||
|
tc := topsdk.NewDefaultTopClient(conf.AppKey, conf.AppSecret, "https://eco.taobao.com/router/rest", 10, 30)
|
||||||
return &Client{
|
return &Client{
|
||||||
ThirdClient: client.NewThirdClient(log),
|
topClient: &tc,
|
||||||
log: log,
|
abilityClient: defaultability.NewDefaultability(&tc),
|
||||||
authConfig: conf,
|
log: log,
|
||||||
|
authConfig: conf,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// todo:: DoHttp 发起http请求
|
|
||||||
func (c *Client) DoHttp(method string, url string, req *client.HttpRequest, resp *client.HttpResponse) error {
|
|
||||||
// todo:: api请求频率限制?
|
|
||||||
c.apiRateLimit()
|
|
||||||
// 发起请求
|
|
||||||
err := c.ThirdClient.DoHttp(method, url, req, resp)
|
|
||||||
return err
|
|
||||||
}
|
|
||||||
|
|
||||||
// todo:: 请求api的频率限制
|
// todo:: 请求api的频率限制
|
||||||
func (c *Client) apiRateLimit() {
|
func (c *Client) apiRateLimit() {
|
||||||
|
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
package eleme_union
|
|
||||||
@ -1,3 +1 @@
|
|||||||
package eleme_union
|
package eleme_union
|
||||||
|
|
||||||
// todo:: 定义第三方平台api接口的结构体
|
|
||||||
|
|||||||
@ -14,8 +14,8 @@ import (
|
|||||||
|
|
||||||
// Api 调用第三方平台的api
|
// Api 调用第三方平台的api
|
||||||
type MeituanCsrApi interface {
|
type MeituanCsrApi interface {
|
||||||
|
// GetLink 获取推广链接
|
||||||
GetLink(params PromotionLinkRequest) (*PromotionLinkResponse, error)
|
GetLink(params PromotionLinkRequest) (*PromotionLinkResponse, error)
|
||||||
Url(ctx context.Context, url string) string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
type meituanCsrApiImpl struct {
|
type meituanCsrApiImpl struct {
|
||||||
@ -31,7 +31,7 @@ func newMeituanCsrApiImpl(log logx.Logger, client *Client) MeituanCsrApi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (a *meituanCsrApiImpl) GetLink(params PromotionLinkRequest) (*PromotionLinkResponse, error) {
|
func (a *meituanCsrApiImpl) GetLink(params PromotionLinkRequest) (*PromotionLinkResponse, error) {
|
||||||
url := a.Url(context.Background(), GetLinkUrl)
|
url := a.url(context.Background(), GetLinkUrl)
|
||||||
queryArgs := util.StructToMap(params)
|
queryArgs := util.StructToMap(params)
|
||||||
req := &client.HttpRequest{Headers: a.client.Headers, QueryArgs: queryArgs}
|
req := &client.HttpRequest{Headers: a.client.Headers, QueryArgs: queryArgs}
|
||||||
response := new(PromotionLinkResponse)
|
response := new(PromotionLinkResponse)
|
||||||
@ -41,7 +41,7 @@ func (a *meituanCsrApiImpl) GetLink(params PromotionLinkRequest) (*PromotionLink
|
|||||||
return response, nil
|
return response, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func (a *meituanCsrApiImpl) Url(ctx context.Context, url string) string {
|
func (a *meituanCsrApiImpl) url(ctx context.Context, url string) string {
|
||||||
requestId := trace.TraceIDFromContext(ctx)
|
requestId := trace.TraceIDFromContext(ctx)
|
||||||
timestamp := time.Now().Unix()
|
timestamp := time.Now().Unix()
|
||||||
accessToken := a.generateAccessToken(timestamp)
|
accessToken := a.generateAccessToken(timestamp)
|
||||||
|
|||||||
@ -8,29 +8,29 @@ import (
|
|||||||
|
|
||||||
// AuthConfig api鉴权参数
|
// AuthConfig api鉴权参数
|
||||||
type AuthConfig struct {
|
type AuthConfig struct {
|
||||||
AppKey string
|
AppKey string // 应用key
|
||||||
UtmSource string
|
UtmSource string // 渠道来源
|
||||||
}
|
}
|
||||||
|
|
||||||
// 连接第三方平台的client
|
// 连接第三方平台的client
|
||||||
type Client struct {
|
type Client struct {
|
||||||
client.ThirdClient
|
client.HttpClient
|
||||||
log logx.Logger
|
log logx.Logger
|
||||||
authConfig AuthConfig
|
authConfig AuthConfig
|
||||||
aes *AES
|
aes *AES
|
||||||
Headers map[string]string
|
Headers map[string]string
|
||||||
}
|
}
|
||||||
|
|
||||||
func newClient(log logx.Logger, conf AuthConfig) *Client {
|
|
||||||
return &Client{
|
|
||||||
ThirdClient: client.NewThirdClient(log),
|
|
||||||
log: log,
|
|
||||||
authConfig: conf,
|
|
||||||
aes: NewAes(conf.AppKey),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewApiClient(log logx.Logger, conf AuthConfig) MeituanCsrApi {
|
func NewApiClient(log logx.Logger, conf AuthConfig) MeituanCsrApi {
|
||||||
clt := newClient(log, conf)
|
clt := newClient(log, conf)
|
||||||
return newMeituanCsrApiImpl(log, clt)
|
return newMeituanCsrApiImpl(log, clt)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func newClient(log logx.Logger, conf AuthConfig) *Client {
|
||||||
|
return &Client{
|
||||||
|
HttpClient: client.NewHttpClient(log),
|
||||||
|
log: log,
|
||||||
|
authConfig: conf,
|
||||||
|
aes: NewAes(conf.AppKey),
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@ -8,28 +8,28 @@ import (
|
|||||||
|
|
||||||
// AuthConfig api鉴权参数
|
// AuthConfig api鉴权参数
|
||||||
type AuthConfig struct {
|
type AuthConfig struct {
|
||||||
SignKey string //签名秘钥
|
SignKey string // 签名秘钥
|
||||||
NotifyKey string //回调秘钥
|
NotifyKey string // 回调秘钥
|
||||||
}
|
}
|
||||||
|
|
||||||
// 连接第三方平台的client
|
// 连接第三方平台的client
|
||||||
type Client struct {
|
type Client struct {
|
||||||
client.ThirdClient
|
client.HttpClient
|
||||||
log logx.Logger
|
log logx.Logger
|
||||||
authConfig AuthConfig
|
authConfig AuthConfig
|
||||||
Headers map[string]string
|
Headers map[string]string
|
||||||
}
|
}
|
||||||
|
|
||||||
func newClient(log logx.Logger, conf AuthConfig) *Client {
|
|
||||||
// todo:: 请求第三方平台的配置参数
|
|
||||||
return &Client{
|
|
||||||
ThirdClient: client.NewThirdClient(log),
|
|
||||||
log: log,
|
|
||||||
authConfig: conf,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
func NewApiClient(log logx.Logger, conf AuthConfig) MeituanUnionApi {
|
func NewApiClient(log logx.Logger, conf AuthConfig) MeituanUnionApi {
|
||||||
clt := newClient(log, conf)
|
clt := newClient(log, conf)
|
||||||
return newMeituanUnionApiImpl(log, clt)
|
return newMeituanUnionApiImpl(log, clt)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func newClient(log logx.Logger, conf AuthConfig) *Client {
|
||||||
|
// todo:: 请求第三方平台的配置参数
|
||||||
|
return &Client{
|
||||||
|
HttpClient: client.NewHttpClient(log),
|
||||||
|
log: log,
|
||||||
|
authConfig: conf,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
package meituan_union
|
|
||||||
199
sdk/topsdk/ability132/Ability132.go
Normal file
199
sdk/topsdk/ability132/Ability132.go
Normal file
@ -0,0 +1,199 @@
|
|||||||
|
package ability132
|
||||||
|
|
||||||
|
import (
|
||||||
|
"errors"
|
||||||
|
"log"
|
||||||
|
|
||||||
|
"topsdk"
|
||||||
|
"topsdk/ability132/request"
|
||||||
|
"topsdk/ability132/response"
|
||||||
|
"topsdk/util"
|
||||||
|
)
|
||||||
|
|
||||||
|
type Ability132 struct {
|
||||||
|
Client *topsdk.TopClient
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewAbility132(client *topsdk.TopClient) *Ability132 {
|
||||||
|
return &Ability132{client}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
批量发送消息
|
||||||
|
*/
|
||||||
|
func (ability *Ability132) TaobaoTmcMessagesProduce(req *request.TaobaoTmcMessagesProduceRequest) (*response.TaobaoTmcMessagesProduceResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Ability132 topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("taobao.tmc.messages.produce", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.TaobaoTmcMessagesProduceResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("taobaoTmcMessagesProduce error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
获取自定义用户分组列表
|
||||||
|
*/
|
||||||
|
func (ability *Ability132) TaobaoTmcGroupsGet(req *request.TaobaoTmcGroupsGetRequest) (*response.TaobaoTmcGroupsGetResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Ability132 topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("taobao.tmc.groups.get", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.TaobaoTmcGroupsGetResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("taobaoTmcGroupsGet error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
删除指定的分组或分组下的用户
|
||||||
|
*/
|
||||||
|
func (ability *Ability132) TaobaoTmcGroupDelete(req *request.TaobaoTmcGroupDeleteRequest) (*response.TaobaoTmcGroupDeleteResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Ability132 topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("taobao.tmc.group.delete", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.TaobaoTmcGroupDeleteResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("taobaoTmcGroupDelete error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
为已开通用户添加用户分组
|
||||||
|
*/
|
||||||
|
func (ability *Ability132) TaobaoTmcGroupAdd(req *request.TaobaoTmcGroupAddRequest) (*response.TaobaoTmcGroupAddResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Ability132 topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("taobao.tmc.group.add", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.TaobaoTmcGroupAddResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("taobaoTmcGroupAdd error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
删除消息topic分组路由
|
||||||
|
*/
|
||||||
|
func (ability *Ability132) TaobaoTmcTopicGroupDelete(req *request.TaobaoTmcTopicGroupDeleteRequest) (*response.TaobaoTmcTopicGroupDeleteResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Ability132 topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("taobao.tmc.topic.group.delete", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.TaobaoTmcTopicGroupDeleteResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("taobaoTmcTopicGroupDelete error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
点对点消息topic分组路由
|
||||||
|
*/
|
||||||
|
func (ability *Ability132) TaobaoTmcTopicGroupAdd(req *request.TaobaoTmcTopicGroupAddRequest) (*response.TaobaoTmcTopicGroupAddResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Ability132 topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("taobao.tmc.topic.group.add", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.TaobaoTmcTopicGroupAddResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("taobaoTmcTopicGroupAdd error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
确认消费消息的状态
|
||||||
|
*/
|
||||||
|
func (ability *Ability132) TaobaoTmcMessagesConfirm(req *request.TaobaoTmcMessagesConfirmRequest) (*response.TaobaoTmcMessagesConfirmResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Ability132 topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("taobao.tmc.messages.confirm", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.TaobaoTmcMessagesConfirmResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("taobaoTmcMessagesConfirm error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
消费多条消息
|
||||||
|
*/
|
||||||
|
func (ability *Ability132) TaobaoTmcMessagesConsume(req *request.TaobaoTmcMessagesConsumeRequest) (*response.TaobaoTmcMessagesConsumeResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Ability132 topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("taobao.tmc.messages.consume", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.TaobaoTmcMessagesConsumeResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("taobaoTmcMessagesConsume error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
TMC授权token
|
||||||
|
*/
|
||||||
|
func (ability *Ability132) TaobaoTmcAuthGet(req *request.TaobaoTmcAuthGetRequest) (*response.TaobaoTmcAuthGetResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Ability132 topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("taobao.tmc.auth.get", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.TaobaoTmcAuthGetResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("taobaoTmcAuthGet error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
12
sdk/topsdk/ability132/domain/TaobaoTmcGroupsGetTmcGroup.go
Normal file
12
sdk/topsdk/ability132/domain/TaobaoTmcGroupsGetTmcGroup.go
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type TaobaoTmcGroupsGetTmcGroup struct {
|
||||||
|
/*
|
||||||
|
分组名称 */
|
||||||
|
Name *string `json:"name,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *TaobaoTmcGroupsGetTmcGroup) SetName(v string) *TaobaoTmcGroupsGetTmcGroup {
|
||||||
|
s.Name = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,64 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
import (
|
||||||
|
"topsdk/util"
|
||||||
|
)
|
||||||
|
|
||||||
|
type TaobaoTmcMessagesConsumeTmcMessage struct {
|
||||||
|
/*
|
||||||
|
消息所属的用户编号 */
|
||||||
|
UserId *int64 `json:"user_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
用户的昵称 */
|
||||||
|
UserNick *string `json:"user_nick,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
消息详细内容,格式为JSON/XML */
|
||||||
|
Content *string `json:"content,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
消息ID */
|
||||||
|
Id *int64 `json:"id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
消息发布时间 */
|
||||||
|
PubTime *util.LocalTime `json:"pub_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
消息发布者的AppKey */
|
||||||
|
PubAppKey *string `json:"pub_app_key,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
消息所属主题 */
|
||||||
|
Topic *string `json:"topic,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *TaobaoTmcMessagesConsumeTmcMessage) SetUserId(v int64) *TaobaoTmcMessagesConsumeTmcMessage {
|
||||||
|
s.UserId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcMessagesConsumeTmcMessage) SetUserNick(v string) *TaobaoTmcMessagesConsumeTmcMessage {
|
||||||
|
s.UserNick = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcMessagesConsumeTmcMessage) SetContent(v string) *TaobaoTmcMessagesConsumeTmcMessage {
|
||||||
|
s.Content = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcMessagesConsumeTmcMessage) SetId(v int64) *TaobaoTmcMessagesConsumeTmcMessage {
|
||||||
|
s.Id = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcMessagesConsumeTmcMessage) SetPubTime(v util.LocalTime) *TaobaoTmcMessagesConsumeTmcMessage {
|
||||||
|
s.PubTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcMessagesConsumeTmcMessage) SetPubAppKey(v string) *TaobaoTmcMessagesConsumeTmcMessage {
|
||||||
|
s.PubAppKey = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcMessagesConsumeTmcMessage) SetTopic(v string) *TaobaoTmcMessagesConsumeTmcMessage {
|
||||||
|
s.Topic = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type TaobaoTmcMessagesProduceTmcProduceResult struct {
|
||||||
|
/*
|
||||||
|
错误码 */
|
||||||
|
ErrorCode *string `json:"error_code,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
错误信息 */
|
||||||
|
ErrorMessage *string `json:"error_message,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
是否成功 */
|
||||||
|
IsSuccess *bool `json:"is_success,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *TaobaoTmcMessagesProduceTmcProduceResult) SetErrorCode(v string) *TaobaoTmcMessagesProduceTmcProduceResult {
|
||||||
|
s.ErrorCode = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcMessagesProduceTmcProduceResult) SetErrorMessage(v string) *TaobaoTmcMessagesProduceTmcProduceResult {
|
||||||
|
s.ErrorMessage = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcMessagesProduceTmcProduceResult) SetIsSuccess(v bool) *TaobaoTmcMessagesProduceTmcProduceResult {
|
||||||
|
s.IsSuccess = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type TaobaoTmcMessagesProduceTmcPublishMessage struct {
|
||||||
|
/*
|
||||||
|
消息内容的JSON表述,必须按照topic的定义来填充 */
|
||||||
|
Content *string `json:"content,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
消息的扩增属性,用json格式表示 */
|
||||||
|
JsonExContent *string `json:"json_ex_content,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
直发消息需要传入目标appkey */
|
||||||
|
TargetAppKey *string `json:"target_app_key,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
目标分组 */
|
||||||
|
TargetGroup *string `json:"target_group,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
消息类型 */
|
||||||
|
Topic *string `json:"topic,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *TaobaoTmcMessagesProduceTmcPublishMessage) SetContent(v string) *TaobaoTmcMessagesProduceTmcPublishMessage {
|
||||||
|
s.Content = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcMessagesProduceTmcPublishMessage) SetJsonExContent(v string) *TaobaoTmcMessagesProduceTmcPublishMessage {
|
||||||
|
s.JsonExContent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcMessagesProduceTmcPublishMessage) SetTargetAppKey(v string) *TaobaoTmcMessagesProduceTmcPublishMessage {
|
||||||
|
s.TargetAppKey = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcMessagesProduceTmcPublishMessage) SetTargetGroup(v string) *TaobaoTmcMessagesProduceTmcPublishMessage {
|
||||||
|
s.TargetGroup = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcMessagesProduceTmcPublishMessage) SetTopic(v string) *TaobaoTmcMessagesProduceTmcPublishMessage {
|
||||||
|
s.Topic = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
25
sdk/topsdk/ability132/request/TaobaoTmcAuthGetRequest.go
Normal file
25
sdk/topsdk/ability132/request/TaobaoTmcAuthGetRequest.go
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
package request
|
||||||
|
|
||||||
|
type TaobaoTmcAuthGetRequest struct {
|
||||||
|
/*
|
||||||
|
tmc组名 */
|
||||||
|
Group *string `json:"group,omitempty" required:"false" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *TaobaoTmcAuthGetRequest) SetGroup(v string) *TaobaoTmcAuthGetRequest {
|
||||||
|
s.Group = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
|
||||||
|
func (req *TaobaoTmcAuthGetRequest) ToMap() map[string]interface{} {
|
||||||
|
paramMap := make(map[string]interface{})
|
||||||
|
if req.Group != nil {
|
||||||
|
paramMap["group"] = *req.Group
|
||||||
|
}
|
||||||
|
return paramMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func (req *TaobaoTmcAuthGetRequest) ToFileMap() map[string]interface{} {
|
||||||
|
fileMap := make(map[string]interface{})
|
||||||
|
return fileMap
|
||||||
|
}
|
||||||
49
sdk/topsdk/ability132/request/TaobaoTmcGroupAddRequest.go
Normal file
49
sdk/topsdk/ability132/request/TaobaoTmcGroupAddRequest.go
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
package request
|
||||||
|
|
||||||
|
import (
|
||||||
|
"topsdk/util"
|
||||||
|
)
|
||||||
|
|
||||||
|
type TaobaoTmcGroupAddRequest struct {
|
||||||
|
/*
|
||||||
|
分组名称,同一个应用下需要保证唯一性,最长32个字符。添加分组后,消息通道会为用户的消息分配独立分组,但之前的消息还是存储于默认分组中。不能以default开头,default开头为系统默认组。 */
|
||||||
|
GroupName *string `json:"group_name" required:"true" `
|
||||||
|
/*
|
||||||
|
用户昵称列表,以半角逗号分隔,支持子账号,支持增量添加用户 */
|
||||||
|
Nicks *[]string `json:"nicks" required:"true" `
|
||||||
|
/*
|
||||||
|
用户所属于的平台类型,tbUIC:淘宝用户; icbu: icbu用户;ae:ae用户 defalutValue<EFBFBD><EFBFBD>tbUIC */
|
||||||
|
UserPlatform *string `json:"user_platform,omitempty" required:"false" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *TaobaoTmcGroupAddRequest) SetGroupName(v string) *TaobaoTmcGroupAddRequest {
|
||||||
|
s.GroupName = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcGroupAddRequest) SetNicks(v []string) *TaobaoTmcGroupAddRequest {
|
||||||
|
s.Nicks = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcGroupAddRequest) SetUserPlatform(v string) *TaobaoTmcGroupAddRequest {
|
||||||
|
s.UserPlatform = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
|
||||||
|
func (req *TaobaoTmcGroupAddRequest) ToMap() map[string]interface{} {
|
||||||
|
paramMap := make(map[string]interface{})
|
||||||
|
if req.GroupName != nil {
|
||||||
|
paramMap["group_name"] = *req.GroupName
|
||||||
|
}
|
||||||
|
if req.Nicks != nil {
|
||||||
|
paramMap["nicks"] = util.ConvertBasicList(*req.Nicks)
|
||||||
|
}
|
||||||
|
if req.UserPlatform != nil {
|
||||||
|
paramMap["user_platform"] = *req.UserPlatform
|
||||||
|
}
|
||||||
|
return paramMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func (req *TaobaoTmcGroupAddRequest) ToFileMap() map[string]interface{} {
|
||||||
|
fileMap := make(map[string]interface{})
|
||||||
|
return fileMap
|
||||||
|
}
|
||||||
49
sdk/topsdk/ability132/request/TaobaoTmcGroupDeleteRequest.go
Normal file
49
sdk/topsdk/ability132/request/TaobaoTmcGroupDeleteRequest.go
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
package request
|
||||||
|
|
||||||
|
import (
|
||||||
|
"topsdk/util"
|
||||||
|
)
|
||||||
|
|
||||||
|
type TaobaoTmcGroupDeleteRequest struct {
|
||||||
|
/*
|
||||||
|
分组名称,分组删除后,用户的消息将会存储于默认分组中。警告:由于分组已经删除,用户之前未消费的消息将无法再获取。不能以default开头,default开头为系统默认组。 */
|
||||||
|
GroupName *string `json:"group_name" required:"true" `
|
||||||
|
/*
|
||||||
|
用户列表,不传表示删除整个分组,如果用户全部删除后,也会自动删除整个分组 */
|
||||||
|
Nicks *[]string `json:"nicks,omitempty" required:"false" `
|
||||||
|
/*
|
||||||
|
用户所属于的平台类型,tbUIC:淘宝用户; icbu: icbu用户;ae:ae用户 defalutValue<EFBFBD><EFBFBD>tbUIC */
|
||||||
|
UserPlatform *string `json:"user_platform,omitempty" required:"false" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *TaobaoTmcGroupDeleteRequest) SetGroupName(v string) *TaobaoTmcGroupDeleteRequest {
|
||||||
|
s.GroupName = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcGroupDeleteRequest) SetNicks(v []string) *TaobaoTmcGroupDeleteRequest {
|
||||||
|
s.Nicks = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcGroupDeleteRequest) SetUserPlatform(v string) *TaobaoTmcGroupDeleteRequest {
|
||||||
|
s.UserPlatform = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
|
||||||
|
func (req *TaobaoTmcGroupDeleteRequest) ToMap() map[string]interface{} {
|
||||||
|
paramMap := make(map[string]interface{})
|
||||||
|
if req.GroupName != nil {
|
||||||
|
paramMap["group_name"] = *req.GroupName
|
||||||
|
}
|
||||||
|
if req.Nicks != nil {
|
||||||
|
paramMap["nicks"] = util.ConvertBasicList(*req.Nicks)
|
||||||
|
}
|
||||||
|
if req.UserPlatform != nil {
|
||||||
|
paramMap["user_platform"] = *req.UserPlatform
|
||||||
|
}
|
||||||
|
return paramMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func (req *TaobaoTmcGroupDeleteRequest) ToFileMap() map[string]interface{} {
|
||||||
|
fileMap := make(map[string]interface{})
|
||||||
|
return fileMap
|
||||||
|
}
|
||||||
49
sdk/topsdk/ability132/request/TaobaoTmcGroupsGetRequest.go
Normal file
49
sdk/topsdk/ability132/request/TaobaoTmcGroupsGetRequest.go
Normal file
@ -0,0 +1,49 @@
|
|||||||
|
package request
|
||||||
|
|
||||||
|
import (
|
||||||
|
"topsdk/util"
|
||||||
|
)
|
||||||
|
|
||||||
|
type TaobaoTmcGroupsGetRequest struct {
|
||||||
|
/*
|
||||||
|
要查询分组的名称,多个分组用半角逗号分隔,不传代表查询所有分组信息,但不会返回组下面的用户信息。如果应用没有设置分组则返回空。组名不能以default开头,default开头是系统默认的组。 */
|
||||||
|
GroupNames *[]string `json:"group_names,omitempty" required:"false" `
|
||||||
|
/*
|
||||||
|
页码 defalutValue<EFBFBD><EFBFBD>1 */
|
||||||
|
PageNo *int64 `json:"page_no,omitempty" required:"false" `
|
||||||
|
/*
|
||||||
|
每页返回多少个分组 defalutValue<EFBFBD><EFBFBD>40 */
|
||||||
|
PageSize *int64 `json:"page_size,omitempty" required:"false" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *TaobaoTmcGroupsGetRequest) SetGroupNames(v []string) *TaobaoTmcGroupsGetRequest {
|
||||||
|
s.GroupNames = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcGroupsGetRequest) SetPageNo(v int64) *TaobaoTmcGroupsGetRequest {
|
||||||
|
s.PageNo = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcGroupsGetRequest) SetPageSize(v int64) *TaobaoTmcGroupsGetRequest {
|
||||||
|
s.PageSize = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
|
||||||
|
func (req *TaobaoTmcGroupsGetRequest) ToMap() map[string]interface{} {
|
||||||
|
paramMap := make(map[string]interface{})
|
||||||
|
if req.GroupNames != nil {
|
||||||
|
paramMap["group_names"] = util.ConvertBasicList(*req.GroupNames)
|
||||||
|
}
|
||||||
|
if req.PageNo != nil {
|
||||||
|
paramMap["page_no"] = *req.PageNo
|
||||||
|
}
|
||||||
|
if req.PageSize != nil {
|
||||||
|
paramMap["page_size"] = *req.PageSize
|
||||||
|
}
|
||||||
|
return paramMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func (req *TaobaoTmcGroupsGetRequest) ToFileMap() map[string]interface{} {
|
||||||
|
fileMap := make(map[string]interface{})
|
||||||
|
return fileMap
|
||||||
|
}
|
||||||
@ -0,0 +1,49 @@
|
|||||||
|
package request
|
||||||
|
|
||||||
|
import (
|
||||||
|
"topsdk/util"
|
||||||
|
)
|
||||||
|
|
||||||
|
type TaobaoTmcMessagesConfirmRequest struct {
|
||||||
|
/*
|
||||||
|
分组名称,不传代表默认分组 */
|
||||||
|
GroupName *string `json:"group_name,omitempty" required:"false" `
|
||||||
|
/*
|
||||||
|
处理成功的消息ID列表 最大 200个ID */
|
||||||
|
SMessageIds *[]int64 `json:"s_message_ids" required:"true" `
|
||||||
|
/*
|
||||||
|
处理失败的消息ID列表--已废弃,无需传此字段 */
|
||||||
|
FMessageIds *[]int64 `json:"f_message_ids,omitempty" required:"false" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *TaobaoTmcMessagesConfirmRequest) SetGroupName(v string) *TaobaoTmcMessagesConfirmRequest {
|
||||||
|
s.GroupName = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcMessagesConfirmRequest) SetSMessageIds(v []int64) *TaobaoTmcMessagesConfirmRequest {
|
||||||
|
s.SMessageIds = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcMessagesConfirmRequest) SetFMessageIds(v []int64) *TaobaoTmcMessagesConfirmRequest {
|
||||||
|
s.FMessageIds = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
|
||||||
|
func (req *TaobaoTmcMessagesConfirmRequest) ToMap() map[string]interface{} {
|
||||||
|
paramMap := make(map[string]interface{})
|
||||||
|
if req.GroupName != nil {
|
||||||
|
paramMap["group_name"] = *req.GroupName
|
||||||
|
}
|
||||||
|
if req.SMessageIds != nil {
|
||||||
|
paramMap["s_message_ids"] = util.ConvertBasicList(*req.SMessageIds)
|
||||||
|
}
|
||||||
|
if req.FMessageIds != nil {
|
||||||
|
paramMap["f_message_ids"] = util.ConvertBasicList(*req.FMessageIds)
|
||||||
|
}
|
||||||
|
return paramMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func (req *TaobaoTmcMessagesConfirmRequest) ToFileMap() map[string]interface{} {
|
||||||
|
fileMap := make(map[string]interface{})
|
||||||
|
return fileMap
|
||||||
|
}
|
||||||
@ -0,0 +1,35 @@
|
|||||||
|
package request
|
||||||
|
|
||||||
|
type TaobaoTmcMessagesConsumeRequest struct {
|
||||||
|
/*
|
||||||
|
用户分组名称,不传表示消费默认分组,如果应用没有设置用户分组,传入分组名称将会返回错误 */
|
||||||
|
GroupName *string `json:"group_name,omitempty" required:"false" `
|
||||||
|
/*
|
||||||
|
每次批量消费消息的条数,最小值:10;最大值:200 defalutValue<EFBFBD><EFBFBD>100 */
|
||||||
|
Quantity *int64 `json:"quantity,omitempty" required:"false" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *TaobaoTmcMessagesConsumeRequest) SetGroupName(v string) *TaobaoTmcMessagesConsumeRequest {
|
||||||
|
s.GroupName = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcMessagesConsumeRequest) SetQuantity(v int64) *TaobaoTmcMessagesConsumeRequest {
|
||||||
|
s.Quantity = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
|
||||||
|
func (req *TaobaoTmcMessagesConsumeRequest) ToMap() map[string]interface{} {
|
||||||
|
paramMap := make(map[string]interface{})
|
||||||
|
if req.GroupName != nil {
|
||||||
|
paramMap["group_name"] = *req.GroupName
|
||||||
|
}
|
||||||
|
if req.Quantity != nil {
|
||||||
|
paramMap["quantity"] = *req.Quantity
|
||||||
|
}
|
||||||
|
return paramMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func (req *TaobaoTmcMessagesConsumeRequest) ToFileMap() map[string]interface{} {
|
||||||
|
fileMap := make(map[string]interface{})
|
||||||
|
return fileMap
|
||||||
|
}
|
||||||
@ -0,0 +1,30 @@
|
|||||||
|
package request
|
||||||
|
|
||||||
|
import (
|
||||||
|
"topsdk/ability132/domain"
|
||||||
|
"topsdk/util"
|
||||||
|
)
|
||||||
|
|
||||||
|
type TaobaoTmcMessagesProduceRequest struct {
|
||||||
|
/*
|
||||||
|
tmc消息列表, 最多50条,元素结构与taobao.tmc.message.produce一致,用json表示的消息列表。例如:[{"content": "{\"tid\":1234554321,\"status\":\"X_LOGISTICS_PRINTED\",\"action_time\":\"2014-08-08 18:24:00\",\"seller_nick\": \"向阳aa\",\"operator\":\"小张\"}","topic": "taobao_jds_TradeTrace"},{"content": "{\"tid\":1234554321,\"status\":\"X_LOGISTICS_PRINTED\",\"action_time\":\"2014-08-08 18:24:00\",\"seller_nick\": \"向阳aa\",\"operator\":\"小张\"}","topic": "taobao_jds_TradeTrace"}] */
|
||||||
|
Messages *[]domain.TaobaoTmcMessagesProduceTmcPublishMessage `json:"messages" required:"true" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *TaobaoTmcMessagesProduceRequest) SetMessages(v []domain.TaobaoTmcMessagesProduceTmcPublishMessage) *TaobaoTmcMessagesProduceRequest {
|
||||||
|
s.Messages = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
|
||||||
|
func (req *TaobaoTmcMessagesProduceRequest) ToMap() map[string]interface{} {
|
||||||
|
paramMap := make(map[string]interface{})
|
||||||
|
if req.Messages != nil {
|
||||||
|
paramMap["messages"] = util.ConvertStructList(*req.Messages)
|
||||||
|
}
|
||||||
|
return paramMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func (req *TaobaoTmcMessagesProduceRequest) ToFileMap() map[string]interface{} {
|
||||||
|
fileMap := make(map[string]interface{})
|
||||||
|
return fileMap
|
||||||
|
}
|
||||||
@ -0,0 +1,39 @@
|
|||||||
|
package request
|
||||||
|
|
||||||
|
import (
|
||||||
|
"topsdk/util"
|
||||||
|
)
|
||||||
|
|
||||||
|
type TaobaoTmcTopicGroupAddRequest struct {
|
||||||
|
/*
|
||||||
|
消息分组名,如果不存在,会自动创建 */
|
||||||
|
GroupName *string `json:"group_name" required:"true" `
|
||||||
|
/*
|
||||||
|
消息topic名称,多个以逗号(,)分割 */
|
||||||
|
Topics *[]string `json:"topics" required:"true" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *TaobaoTmcTopicGroupAddRequest) SetGroupName(v string) *TaobaoTmcTopicGroupAddRequest {
|
||||||
|
s.GroupName = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcTopicGroupAddRequest) SetTopics(v []string) *TaobaoTmcTopicGroupAddRequest {
|
||||||
|
s.Topics = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
|
||||||
|
func (req *TaobaoTmcTopicGroupAddRequest) ToMap() map[string]interface{} {
|
||||||
|
paramMap := make(map[string]interface{})
|
||||||
|
if req.GroupName != nil {
|
||||||
|
paramMap["group_name"] = *req.GroupName
|
||||||
|
}
|
||||||
|
if req.Topics != nil {
|
||||||
|
paramMap["topics"] = util.ConvertBasicList(*req.Topics)
|
||||||
|
}
|
||||||
|
return paramMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func (req *TaobaoTmcTopicGroupAddRequest) ToFileMap() map[string]interface{} {
|
||||||
|
fileMap := make(map[string]interface{})
|
||||||
|
return fileMap
|
||||||
|
}
|
||||||
@ -0,0 +1,49 @@
|
|||||||
|
package request
|
||||||
|
|
||||||
|
import (
|
||||||
|
"topsdk/util"
|
||||||
|
)
|
||||||
|
|
||||||
|
type TaobaoTmcTopicGroupDeleteRequest struct {
|
||||||
|
/*
|
||||||
|
消息分组名 */
|
||||||
|
GroupName *string `json:"group_name" required:"true" `
|
||||||
|
/*
|
||||||
|
消息分组Id,一般不用填写,如果分组已经被删除,则根据问题排查工具返回的ID删除路由关系 */
|
||||||
|
GroupId *int64 `json:"group_id,omitempty" required:"false" `
|
||||||
|
/*
|
||||||
|
消息topic名称,多个以逗号(,)分割 */
|
||||||
|
Topics *[]string `json:"topics" required:"true" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *TaobaoTmcTopicGroupDeleteRequest) SetGroupName(v string) *TaobaoTmcTopicGroupDeleteRequest {
|
||||||
|
s.GroupName = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcTopicGroupDeleteRequest) SetGroupId(v int64) *TaobaoTmcTopicGroupDeleteRequest {
|
||||||
|
s.GroupId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *TaobaoTmcTopicGroupDeleteRequest) SetTopics(v []string) *TaobaoTmcTopicGroupDeleteRequest {
|
||||||
|
s.Topics = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
|
||||||
|
func (req *TaobaoTmcTopicGroupDeleteRequest) ToMap() map[string]interface{} {
|
||||||
|
paramMap := make(map[string]interface{})
|
||||||
|
if req.GroupName != nil {
|
||||||
|
paramMap["group_name"] = *req.GroupName
|
||||||
|
}
|
||||||
|
if req.GroupId != nil {
|
||||||
|
paramMap["group_id"] = *req.GroupId
|
||||||
|
}
|
||||||
|
if req.Topics != nil {
|
||||||
|
paramMap["topics"] = util.ConvertBasicList(*req.Topics)
|
||||||
|
}
|
||||||
|
return paramMap
|
||||||
|
}
|
||||||
|
|
||||||
|
func (req *TaobaoTmcTopicGroupDeleteRequest) ToFileMap() map[string]interface{} {
|
||||||
|
fileMap := make(map[string]interface{})
|
||||||
|
return fileMap
|
||||||
|
}
|
||||||
19
sdk/topsdk/ability132/response/TaobaoTmcAuthGetResponse.go
Normal file
19
sdk/topsdk/ability132/response/TaobaoTmcAuthGetResponse.go
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
package response
|
||||||
|
|
||||||
|
type TaobaoTmcAuthGetResponse struct {
|
||||||
|
|
||||||
|
/*
|
||||||
|
System request id
|
||||||
|
*/
|
||||||
|
RequestId string `json:"request_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
System body
|
||||||
|
*/
|
||||||
|
Body string
|
||||||
|
|
||||||
|
/*
|
||||||
|
result
|
||||||
|
*/
|
||||||
|
Result string `json:"result,omitempty" `
|
||||||
|
}
|
||||||
27
sdk/topsdk/ability132/response/TaobaoTmcGroupAddResponse.go
Normal file
27
sdk/topsdk/ability132/response/TaobaoTmcGroupAddResponse.go
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
package response
|
||||||
|
|
||||||
|
import (
|
||||||
|
"topsdk/util"
|
||||||
|
)
|
||||||
|
|
||||||
|
type TaobaoTmcGroupAddResponse struct {
|
||||||
|
|
||||||
|
/*
|
||||||
|
System request id
|
||||||
|
*/
|
||||||
|
RequestId string `json:"request_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
System body
|
||||||
|
*/
|
||||||
|
Body string
|
||||||
|
|
||||||
|
/*
|
||||||
|
创建时间
|
||||||
|
*/
|
||||||
|
Created util.LocalTime `json:"created,omitempty" `
|
||||||
|
/*
|
||||||
|
分组名称
|
||||||
|
*/
|
||||||
|
GroupName string `json:"group_name,omitempty" `
|
||||||
|
}
|
||||||
@ -0,0 +1,19 @@
|
|||||||
|
package response
|
||||||
|
|
||||||
|
type TaobaoTmcGroupDeleteResponse struct {
|
||||||
|
|
||||||
|
/*
|
||||||
|
System request id
|
||||||
|
*/
|
||||||
|
RequestId string `json:"request_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
System body
|
||||||
|
*/
|
||||||
|
Body string
|
||||||
|
|
||||||
|
/*
|
||||||
|
是否成功
|
||||||
|
*/
|
||||||
|
IsSuccess bool `json:"is_success,omitempty" `
|
||||||
|
}
|
||||||
27
sdk/topsdk/ability132/response/TaobaoTmcGroupsGetResponse.go
Normal file
27
sdk/topsdk/ability132/response/TaobaoTmcGroupsGetResponse.go
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
package response
|
||||||
|
|
||||||
|
import (
|
||||||
|
"topsdk/ability132/domain"
|
||||||
|
)
|
||||||
|
|
||||||
|
type TaobaoTmcGroupsGetResponse struct {
|
||||||
|
|
||||||
|
/*
|
||||||
|
System request id
|
||||||
|
*/
|
||||||
|
RequestId string `json:"request_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
System body
|
||||||
|
*/
|
||||||
|
Body string
|
||||||
|
|
||||||
|
/*
|
||||||
|
dasdasd
|
||||||
|
*/
|
||||||
|
Groups []domain.TaobaoTmcGroupsGetTmcGroup `json:"groups,omitempty" `
|
||||||
|
/*
|
||||||
|
分组总数
|
||||||
|
*/
|
||||||
|
TotalResults int64 `json:"total_results,omitempty" `
|
||||||
|
}
|
||||||
@ -0,0 +1,19 @@
|
|||||||
|
package response
|
||||||
|
|
||||||
|
type TaobaoTmcMessagesConfirmResponse struct {
|
||||||
|
|
||||||
|
/*
|
||||||
|
System request id
|
||||||
|
*/
|
||||||
|
RequestId string `json:"request_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
System body
|
||||||
|
*/
|
||||||
|
Body string
|
||||||
|
|
||||||
|
/*
|
||||||
|
是否成功
|
||||||
|
*/
|
||||||
|
IsSuccess bool `json:"is_success,omitempty" `
|
||||||
|
}
|
||||||
@ -0,0 +1,23 @@
|
|||||||
|
package response
|
||||||
|
|
||||||
|
import (
|
||||||
|
"topsdk/ability132/domain"
|
||||||
|
)
|
||||||
|
|
||||||
|
type TaobaoTmcMessagesConsumeResponse struct {
|
||||||
|
|
||||||
|
/*
|
||||||
|
System request id
|
||||||
|
*/
|
||||||
|
RequestId string `json:"request_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
System body
|
||||||
|
*/
|
||||||
|
Body string
|
||||||
|
|
||||||
|
/*
|
||||||
|
消息列表
|
||||||
|
*/
|
||||||
|
Messages []domain.TaobaoTmcMessagesConsumeTmcMessage `json:"messages,omitempty" `
|
||||||
|
}
|
||||||
@ -0,0 +1,27 @@
|
|||||||
|
package response
|
||||||
|
|
||||||
|
import (
|
||||||
|
"topsdk/ability132/domain"
|
||||||
|
)
|
||||||
|
|
||||||
|
type TaobaoTmcMessagesProduceResponse struct {
|
||||||
|
|
||||||
|
/*
|
||||||
|
System request id
|
||||||
|
*/
|
||||||
|
RequestId string `json:"request_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
System body
|
||||||
|
*/
|
||||||
|
Body string
|
||||||
|
|
||||||
|
/*
|
||||||
|
是否全部成功
|
||||||
|
*/
|
||||||
|
IsAllSuccess bool `json:"is_all_success,omitempty" `
|
||||||
|
/*
|
||||||
|
发送结果,与发送时的参数顺序一致。如果is_all_success为true时,不用校验result是否成功
|
||||||
|
*/
|
||||||
|
Results []domain.TaobaoTmcMessagesProduceTmcProduceResult `json:"results,omitempty" `
|
||||||
|
}
|
||||||
@ -0,0 +1,19 @@
|
|||||||
|
package response
|
||||||
|
|
||||||
|
type TaobaoTmcTopicGroupAddResponse struct {
|
||||||
|
|
||||||
|
/*
|
||||||
|
System request id
|
||||||
|
*/
|
||||||
|
RequestId string `json:"request_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
System body
|
||||||
|
*/
|
||||||
|
Body string
|
||||||
|
|
||||||
|
/*
|
||||||
|
true
|
||||||
|
*/
|
||||||
|
Result bool `json:"result,omitempty" `
|
||||||
|
}
|
||||||
@ -0,0 +1,19 @@
|
|||||||
|
package response
|
||||||
|
|
||||||
|
type TaobaoTmcTopicGroupDeleteResponse struct {
|
||||||
|
|
||||||
|
/*
|
||||||
|
System request id
|
||||||
|
*/
|
||||||
|
RequestId string `json:"request_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
System body
|
||||||
|
*/
|
||||||
|
Body string
|
||||||
|
|
||||||
|
/*
|
||||||
|
true
|
||||||
|
*/
|
||||||
|
Result bool `json:"result,omitempty" `
|
||||||
|
}
|
||||||
23
sdk/topsdk/constants.go
Normal file
23
sdk/topsdk/constants.go
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
package topsdk
|
||||||
|
|
||||||
|
/*
|
||||||
|
*
|
||||||
|
|
||||||
|
sdk使用常量,请勿修改
|
||||||
|
*/
|
||||||
|
const (
|
||||||
|
// SdkVersion 版本号
|
||||||
|
SdkVersion = "new_go_sdk_20240425"
|
||||||
|
|
||||||
|
// ApiFormat api格式
|
||||||
|
ApiFormat = "json"
|
||||||
|
|
||||||
|
// SignMethod 签名算法
|
||||||
|
SignMethod = "hmac-sha256"
|
||||||
|
|
||||||
|
// Version 网关版本号
|
||||||
|
TopVersion = "2.0"
|
||||||
|
|
||||||
|
// DateFormat 日期格式
|
||||||
|
DateFormat = "2006-01-02 15:04:05"
|
||||||
|
)
|
||||||
699
sdk/topsdk/defaultability/Defaultability.go
Normal file
699
sdk/topsdk/defaultability/Defaultability.go
Normal file
@ -0,0 +1,699 @@
|
|||||||
|
package defaultability
|
||||||
|
|
||||||
|
import (
|
||||||
|
"errors"
|
||||||
|
"log"
|
||||||
|
|
||||||
|
"topsdk"
|
||||||
|
"topsdk/defaultability/request"
|
||||||
|
"topsdk/defaultability/response"
|
||||||
|
"topsdk/util"
|
||||||
|
)
|
||||||
|
|
||||||
|
type Defaultability struct {
|
||||||
|
Client *topsdk.TopClient
|
||||||
|
}
|
||||||
|
|
||||||
|
func NewDefaultability(client *topsdk.TopClient) *Defaultability {
|
||||||
|
return &Defaultability{client}
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地生活媒体平台口碑选品筛选项集合
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionKbItemPromotionFilterList(req *request.AlibabaAlscUnionKbItemPromotionFilterListRequest) (*response.AlibabaAlscUnionKbItemPromotionFilterListResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.item.promotion.filter.list", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionKbItemPromotionFilterListResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionKbItemPromotionFilterList error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地生活媒体推广位查询
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionMediaZoneGet(req *request.AlibabaAlscUnionMediaZoneGetRequest) (*response.AlibabaAlscUnionMediaZoneGetResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.media.zone.get", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionMediaZoneGetResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionMediaZoneGet error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地生活媒体平台口碑选品
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionKbItemPromotion(req *request.AlibabaAlscUnionKbItemPromotionRequest) (*response.AlibabaAlscUnionKbItemPromotionResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.item.promotion", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionKbItemPromotionResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionKbItemPromotion error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟饿了么归因排查工具
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionElemeToolOrderAttrbuteCheck(req *request.AlibabaAlscUnionElemeToolOrderAttrbuteCheckRequest) (*response.AlibabaAlscUnionElemeToolOrderAttrbuteCheckResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.eleme.tool.order.attrbute.check", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionElemeToolOrderAttrbuteCheckResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionElemeToolOrderAttrbuteCheck error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地生活媒体推广位创建
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionMediaZoneAdd(req *request.AlibabaAlscUnionMediaZoneAddRequest) (*response.AlibabaAlscUnionMediaZoneAddResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.media.zone.add", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionMediaZoneAddResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionMediaZoneAdd error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟饿了么单品推广门店列表(尚未开放)
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionElemePromotionItempromotionStoreQuery(req *request.AlibabaAlscUnionElemePromotionItempromotionStoreQueryRequest) (*response.AlibabaAlscUnionElemePromotionItempromotionStoreQueryResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.eleme.promotion.itempromotion.store.query", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionElemePromotionItempromotionStoreQueryResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionElemePromotionItempromotionStoreQuery error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟口碑商品列表
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionKbItemQuery(req *request.AlibabaAlscUnionKbItemQueryRequest) (*response.AlibabaAlscUnionKbItemQueryResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.item.query", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionKbItemQueryResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionKbItemQuery error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟饿了么评价有礼库存锁定
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionElemeStorepromotionReviewbwcStockLock(req *request.AlibabaAlscUnionElemeStorepromotionReviewbwcStockLockRequest) (*response.AlibabaAlscUnionElemeStorepromotionReviewbwcStockLockResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.eleme.storepromotion.reviewbwc.stock.lock", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionElemeStorepromotionReviewbwcStockLockResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionElemeStorepromotionReviewbwcStockLock error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟饿了么评价有礼锁定库存释放
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionElemeStorepromotionReviewbwcStockRelease(req *request.AlibabaAlscUnionElemeStorepromotionReviewbwcStockReleaseRequest) (*response.AlibabaAlscUnionElemeStorepromotionReviewbwcStockReleaseResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.eleme.storepromotion.reviewbwc.stock.release", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionElemeStorepromotionReviewbwcStockReleaseResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionElemeStorepromotionReviewbwcStockRelease error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟饿了么评价有礼店铺列表
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionElemeStorepromotionReviewbwcQuery(req *request.AlibabaAlscUnionElemeStorepromotionReviewbwcQueryRequest) (*response.AlibabaAlscUnionElemeStorepromotionReviewbwcQueryResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.eleme.storepromotion.reviewbwc.query", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionElemeStorepromotionReviewbwcQueryResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionElemeStorepromotionReviewbwcQuery error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟饿了么评价有礼店铺详情
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGet(req *request.AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetRequest) (*response.AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.eleme.storepromotion.reviewbwc.detail.get", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionElemeStorepromotionReviewbwcDetailGet error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地生活媒体推广口碑CPA用户反作弊订单数据报表
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionKbcpaPunishOrderGet(req *request.AlibabaAlscUnionKbcpaPunishOrderGetRequest) (*response.AlibabaAlscUnionKbcpaPunishOrderGetResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kbcpa.punish.order.get", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionKbcpaPunishOrderGetResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionKbcpaPunishOrderGet error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟媒体出资活动红包发放
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionElemeMediaActivityCouponSend(req *request.AlibabaAlscUnionElemeMediaActivityCouponSendRequest) (*response.AlibabaAlscUnionElemeMediaActivityCouponSendResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.eleme.media.activity.coupon.send", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionElemeMediaActivityCouponSendResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionElemeMediaActivityCouponSend error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
获取商家所在分组及其已授权(广播)消息topics
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) TaobaoTmcUserGet(req *request.TaobaoTmcUserGetRequest) (*response.TaobaoTmcUserGetResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("taobao.tmc.user.get", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.TaobaoTmcUserGetResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("taobaoTmcUserGet error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟饿了么单店推广店铺列表
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionElemePromotionStorepromotionQuery(req *request.AlibabaAlscUnionElemePromotionStorepromotionQueryRequest) (*response.AlibabaAlscUnionElemePromotionStorepromotionQueryResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.eleme.promotion.storepromotion.query", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionElemePromotionStorepromotionQueryResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionElemePromotionStorepromotionQuery error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟饿了么单店推广单店铺查询
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionElemePromotionStorepromotionGet(req *request.AlibabaAlscUnionElemePromotionStorepromotionGetRequest) (*response.AlibabaAlscUnionElemePromotionStorepromotionGetResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.eleme.promotion.storepromotion.get", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionElemePromotionStorepromotionGetResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionElemePromotionStorepromotionGet error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟饿了么推广官方活动查询
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionElemePromotionOfficialactivityGet(req *request.AlibabaAlscUnionElemePromotionOfficialactivityGetRequest) (*response.AlibabaAlscUnionElemePromotionOfficialactivityGetResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.eleme.promotion.officialactivity.get", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionElemePromotionOfficialactivityGetResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionElemePromotionOfficialactivityGet error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
发布单条消息
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) TaobaoTmcMessageProduce(req *request.TaobaoTmcMessageProduceRequest) (*response.TaobaoTmcMessageProduceResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("taobao.tmc.message.produce", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.TaobaoTmcMessageProduceResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("taobaoTmcMessageProduce error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地生活媒体推广口碑CPA用户维权订单数据报表
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionKbcpaRefundOrderGet(req *request.AlibabaAlscUnionKbcpaRefundOrderGetRequest) (*response.AlibabaAlscUnionKbcpaRefundOrderGetResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kbcpa.refund.order.get", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionKbcpaRefundOrderGetResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionKbcpaRefundOrderGet error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟口碑商户列表
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionKbStoreQuery(req *request.AlibabaAlscUnionKbStoreQueryRequest) (*response.AlibabaAlscUnionKbStoreQueryResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.store.query", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionKbStoreQueryResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionKbStoreQuery error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地生活媒体创建商品推广链接
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionKbItemPromotionShareCreate(req *request.AlibabaAlscUnionKbItemPromotionShareCreateRequest) (*response.AlibabaAlscUnionKbItemPromotionShareCreateResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.item.promotion.share.create", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionKbItemPromotionShareCreateResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionKbItemPromotionShareCreate error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟口碑门店商品列表
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionKbStoreItemQuery(req *request.AlibabaAlscUnionKbStoreItemQueryRequest) (*response.AlibabaAlscUnionKbStoreItemQueryResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.store.item.query", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionKbStoreItemQueryResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionKbStoreItemQuery error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
取消用户的消息服务
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) TaobaoTmcUserCancel(req *request.TaobaoTmcUserCancelRequest) (*response.TaobaoTmcUserCancelResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("taobao.tmc.user.cancel", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.TaobaoTmcUserCancelResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("taobaoTmcUserCancel error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
为已授权的用户开通消息服务
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) TaobaoTmcUserPermit(req *request.TaobaoTmcUserPermitRequest, session string) (*response.TaobaoTmcUserPermitResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.ExecuteWithSession("taobao.tmc.user.permit", req.ToMap(), req.ToFileMap(), session)
|
||||||
|
var respStruct = response.TaobaoTmcUserPermitResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("taobaoTmcUserPermit error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟饿了么单品推广详情
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionElemePromotionItempromotionGet(req *request.AlibabaAlscUnionElemePromotionItempromotionGetRequest) (*response.AlibabaAlscUnionElemePromotionItempromotionGetResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.eleme.promotion.itempromotion.get", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionElemePromotionItempromotionGetResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionElemePromotionItempromotionGet error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟饿了么单品推广列表
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionElemePromotionItempromotionQuery(req *request.AlibabaAlscUnionElemePromotionItempromotionQueryRequest) (*response.AlibabaAlscUnionElemePromotionItempromotionQueryResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.eleme.promotion.itempromotion.query", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionElemePromotionItempromotionQueryResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionElemePromotionItempromotionQuery error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟推广链接推广对象解析
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionPromotionLinkAnalyze(req *request.AlibabaAlscUnionPromotionLinkAnalyzeRequest) (*response.AlibabaAlscUnionPromotionLinkAnalyzeResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.promotion.link.analyze", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionPromotionLinkAnalyzeResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionPromotionLinkAnalyze error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地生活媒体推广订单明细查询
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionKbcpaOrderDetailsGet(req *request.AlibabaAlscUnionKbcpaOrderDetailsGetRequest) (*response.AlibabaAlscUnionKbcpaOrderDetailsGetResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kbcpa.order.details.get", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionKbcpaOrderDetailsGetResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionKbcpaOrderDetailsGet error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟口碑商品详情
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionKbItemDetailGet(req *request.AlibabaAlscUnionKbItemDetailGetRequest) (*response.AlibabaAlscUnionKbItemDetailGetResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.item.detail.get", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionKbItemDetailGetResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionKbItemDetailGet error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟口碑商品门店关系
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionKbItemStoreRelationQuery(req *request.AlibabaAlscUnionKbItemStoreRelationQueryRequest) (*response.AlibabaAlscUnionKbItemStoreRelationQueryResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.item.store.relation.query", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionKbItemStoreRelationQueryResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionKbItemStoreRelationQuery error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地生活媒体推广订单明细报表查询
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionKbcpxPositiveOrderGet(req *request.AlibabaAlscUnionKbcpxPositiveOrderGetRequest) (*response.AlibabaAlscUnionKbcpxPositiveOrderGetResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kbcpx.positive.order.get", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionKbcpxPositiveOrderGetResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionKbcpxPositiveOrderGet error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地联盟口碑门店详情
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionKbItemStoreDetailGet(req *request.AlibabaAlscUnionKbItemStoreDetailGetRequest) (*response.AlibabaAlscUnionKbItemStoreDetailGetResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.item.store.detail.get", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionKbItemStoreDetailGetResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionKbItemStoreDetailGet error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地生活媒体推广用户维权订单数据报表
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionKbcpxRefundOrderGet(req *request.AlibabaAlscUnionKbcpxRefundOrderGetRequest) (*response.AlibabaAlscUnionKbcpxRefundOrderGetResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kbcpx.refund.order.get", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionKbcpxRefundOrderGetResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionKbcpxRefundOrderGet error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
本地生活媒体推广用户反作弊订单数据报表
|
||||||
|
*/
|
||||||
|
func (ability *Defaultability) AlibabaAlscUnionKbcpxPunishOrderGet(req *request.AlibabaAlscUnionKbcpxPunishOrderGetRequest) (*response.AlibabaAlscUnionKbcpxPunishOrderGetResponse, error) {
|
||||||
|
if ability.Client == nil {
|
||||||
|
return nil, errors.New("Defaultability topClient is nil")
|
||||||
|
}
|
||||||
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kbcpx.punish.order.get", req.ToMap(), req.ToFileMap())
|
||||||
|
var respStruct = response.AlibabaAlscUnionKbcpxPunishOrderGetResponse{}
|
||||||
|
if err != nil {
|
||||||
|
log.Println("alibabaAlscUnionKbcpxPunishOrderGet error", err)
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
||||||
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
||||||
|
respStruct.Body = jsonStr
|
||||||
|
}
|
||||||
|
return &respStruct, err
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemeMediaActivityCouponSendMediaActivityCouponSendRequest struct {
|
||||||
|
/*
|
||||||
|
领券手机号 */
|
||||||
|
Mobile *string `json:"mobile,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
媒体出资活动ID */
|
||||||
|
MediaActivityId *string `json:"media_activity_id,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemeMediaActivityCouponSendMediaActivityCouponSendRequest) SetMobile(v string) *AlibabaAlscUnionElemeMediaActivityCouponSendMediaActivityCouponSendRequest {
|
||||||
|
s.Mobile = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeMediaActivityCouponSendMediaActivityCouponSendRequest) SetMediaActivityId(v string) *AlibabaAlscUnionElemeMediaActivityCouponSendMediaActivityCouponSendRequest {
|
||||||
|
s.MediaActivityId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,140 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto struct {
|
||||||
|
/*
|
||||||
|
商品ID */
|
||||||
|
ItemId *string `json:"item_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
名称 */
|
||||||
|
ItemName *string `json:"item_name,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
图片 */
|
||||||
|
Picture *string `json:"picture,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品类型 */
|
||||||
|
BizType *string `json:"biz_type,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
原价(分) */
|
||||||
|
OriginalPriceCent *int64 `json:"original_price_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
售价(分) */
|
||||||
|
SellPriceCent *int64 `json:"sell_price_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
折扣 */
|
||||||
|
Discount *string `json:"discount,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
起始时间(秒) */
|
||||||
|
StartIme *int64 `json:"start_ime,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
结束时间(秒) */
|
||||||
|
EndTime *int64 `json:"end_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
佣金比例 */
|
||||||
|
CommissionRate *string `json:"commission_rate,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
预估佣金(分) */
|
||||||
|
Commission *int64 `json:"commission,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
库存 */
|
||||||
|
Stock *int64 `json:"stock,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
适用城市数量 */
|
||||||
|
ApplyCityCount *int64 `json:"apply_city_count,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
适用门店数量 */
|
||||||
|
ApplyShopCount *int64 `json:"apply_shop_count,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
分享链接 */
|
||||||
|
Link *AlibabaAlscUnionElemePromotionItempromotionGetPromotionLink `json:"link,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品类型(1-商品券;2-代金券) */
|
||||||
|
ItemType *int64 `json:"item_type,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
凭证信息 */
|
||||||
|
Ticket *AlibabaAlscUnionElemePromotionItempromotionGetItemTicket `json:"ticket,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto) SetItemId(v string) *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto {
|
||||||
|
s.ItemId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto) SetItemName(v string) *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto {
|
||||||
|
s.ItemName = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto) SetPicture(v string) *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto {
|
||||||
|
s.Picture = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto) SetBizType(v string) *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto {
|
||||||
|
s.BizType = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto) SetOriginalPriceCent(v int64) *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto {
|
||||||
|
s.OriginalPriceCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto) SetSellPriceCent(v int64) *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto {
|
||||||
|
s.SellPriceCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto) SetDiscount(v string) *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto {
|
||||||
|
s.Discount = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto) SetStartIme(v int64) *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto {
|
||||||
|
s.StartIme = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto) SetEndTime(v int64) *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto {
|
||||||
|
s.EndTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto) SetCommissionRate(v string) *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto {
|
||||||
|
s.CommissionRate = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto) SetCommission(v int64) *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto {
|
||||||
|
s.Commission = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto) SetStock(v int64) *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto {
|
||||||
|
s.Stock = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto) SetApplyCityCount(v int64) *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto {
|
||||||
|
s.ApplyCityCount = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto) SetApplyShopCount(v int64) *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto {
|
||||||
|
s.ApplyShopCount = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto) SetLink(v AlibabaAlscUnionElemePromotionItempromotionGetPromotionLink) *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto {
|
||||||
|
s.Link = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto) SetItemType(v int64) *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto {
|
||||||
|
s.ItemType = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto) SetTicket(v AlibabaAlscUnionElemePromotionItempromotionGetItemTicket) *AlibabaAlscUnionElemePromotionItempromotionGetItemPromotionDto {
|
||||||
|
s.Ticket = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionItempromotionGetItemTicket struct {
|
||||||
|
/*
|
||||||
|
价格(分) */
|
||||||
|
Price *int64 `json:"price,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
数量 */
|
||||||
|
Quantity *int64 `json:"quantity,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
使用门槛(分) */
|
||||||
|
Threshold *int64 `json:"threshold,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemTicket) SetPrice(v int64) *AlibabaAlscUnionElemePromotionItempromotionGetItemTicket {
|
||||||
|
s.Price = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemTicket) SetQuantity(v int64) *AlibabaAlscUnionElemePromotionItempromotionGetItemTicket {
|
||||||
|
s.Quantity = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetItemTicket) SetThreshold(v int64) *AlibabaAlscUnionElemePromotionItempromotionGetItemTicket {
|
||||||
|
s.Threshold = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionItempromotionGetPromotionLink struct {
|
||||||
|
/*
|
||||||
|
微信小程序appId */
|
||||||
|
WxAppid *string `json:"wx_appid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
微信小程序path链接 */
|
||||||
|
WxPath *string `json:"wx_path,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
微信小程序二维码 */
|
||||||
|
WxMiniQrcode *string `json:"wx_mini_qrcode,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
微信推广图片 */
|
||||||
|
WxPicture *string `json:"wx_picture,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
支付宝小程序链接 */
|
||||||
|
AlipaySchemeUrl *string `json:"alipay_scheme_url,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetPromotionLink) SetWxAppid(v string) *AlibabaAlscUnionElemePromotionItempromotionGetPromotionLink {
|
||||||
|
s.WxAppid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetPromotionLink) SetWxPath(v string) *AlibabaAlscUnionElemePromotionItempromotionGetPromotionLink {
|
||||||
|
s.WxPath = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetPromotionLink) SetWxMiniQrcode(v string) *AlibabaAlscUnionElemePromotionItempromotionGetPromotionLink {
|
||||||
|
s.WxMiniQrcode = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetPromotionLink) SetWxPicture(v string) *AlibabaAlscUnionElemePromotionItempromotionGetPromotionLink {
|
||||||
|
s.WxPicture = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetPromotionLink) SetAlipaySchemeUrl(v string) *AlibabaAlscUnionElemePromotionItempromotionGetPromotionLink {
|
||||||
|
s.AlipaySchemeUrl = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionItempromotionGetSingleItemPromotionRequest struct {
|
||||||
|
/*
|
||||||
|
商品类型(hoard_coupon-囤券券) */
|
||||||
|
BizType *string `json:"biz_type,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
推广位 */
|
||||||
|
Pid *string `json:"pid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品ID */
|
||||||
|
ItemId *string `json:"item_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
会员ID(需要联系运营申请) */
|
||||||
|
Sid *string `json:"sid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
是否返回微信推广图片 */
|
||||||
|
IncludeWxImg *bool `json:"include_wx_img,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetSingleItemPromotionRequest) SetBizType(v string) *AlibabaAlscUnionElemePromotionItempromotionGetSingleItemPromotionRequest {
|
||||||
|
s.BizType = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetSingleItemPromotionRequest) SetPid(v string) *AlibabaAlscUnionElemePromotionItempromotionGetSingleItemPromotionRequest {
|
||||||
|
s.Pid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetSingleItemPromotionRequest) SetItemId(v string) *AlibabaAlscUnionElemePromotionItempromotionGetSingleItemPromotionRequest {
|
||||||
|
s.ItemId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetSingleItemPromotionRequest) SetSid(v string) *AlibabaAlscUnionElemePromotionItempromotionGetSingleItemPromotionRequest {
|
||||||
|
s.Sid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionGetSingleItemPromotionRequest) SetIncludeWxImg(v bool) *AlibabaAlscUnionElemePromotionItempromotionGetSingleItemPromotionRequest {
|
||||||
|
s.IncludeWxImg = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,140 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto struct {
|
||||||
|
/*
|
||||||
|
商品ID */
|
||||||
|
ItemId *string `json:"item_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
标题 */
|
||||||
|
ItemName *string `json:"item_name,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
图片 */
|
||||||
|
Picture *string `json:"picture,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品类型 */
|
||||||
|
BizType *string `json:"biz_type,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
原价(分) */
|
||||||
|
OriginalPriceCent *int64 `json:"original_price_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
售价(分) */
|
||||||
|
SellPriceCent *int64 `json:"sell_price_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
折扣 */
|
||||||
|
Discount *string `json:"discount,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
起始时间(秒) */
|
||||||
|
StartIme *int64 `json:"start_ime,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
结束时间(秒) */
|
||||||
|
EndTime *int64 `json:"end_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
佣金比例 */
|
||||||
|
CommissionRate *string `json:"commission_rate,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
预估佣金(分) */
|
||||||
|
Commission *int64 `json:"commission,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
库存 */
|
||||||
|
Stock *int64 `json:"stock,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
适用城市数量 */
|
||||||
|
ApplyCityCount *int64 `json:"apply_city_count,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
适用门店数量 */
|
||||||
|
ApplyShopCount *int64 `json:"apply_shop_count,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
分享链接 */
|
||||||
|
Link *AlibabaAlscUnionElemePromotionItempromotionQueryPromotionLink `json:"link,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品类型(1-商品券;2-代金券) */
|
||||||
|
ItemType *int64 `json:"item_type,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
凭证信息 */
|
||||||
|
Ticket *AlibabaAlscUnionElemePromotionItempromotionQueryItemTicket `json:"ticket,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto) SetItemId(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto {
|
||||||
|
s.ItemId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto) SetItemName(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto {
|
||||||
|
s.ItemName = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto) SetPicture(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto {
|
||||||
|
s.Picture = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto) SetBizType(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto {
|
||||||
|
s.BizType = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto) SetOriginalPriceCent(v int64) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto {
|
||||||
|
s.OriginalPriceCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto) SetSellPriceCent(v int64) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto {
|
||||||
|
s.SellPriceCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto) SetDiscount(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto {
|
||||||
|
s.Discount = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto) SetStartIme(v int64) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto {
|
||||||
|
s.StartIme = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto) SetEndTime(v int64) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto {
|
||||||
|
s.EndTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto) SetCommissionRate(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto {
|
||||||
|
s.CommissionRate = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto) SetCommission(v int64) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto {
|
||||||
|
s.Commission = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto) SetStock(v int64) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto {
|
||||||
|
s.Stock = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto) SetApplyCityCount(v int64) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto {
|
||||||
|
s.ApplyCityCount = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto) SetApplyShopCount(v int64) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto {
|
||||||
|
s.ApplyShopCount = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto) SetLink(v AlibabaAlscUnionElemePromotionItempromotionQueryPromotionLink) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto {
|
||||||
|
s.Link = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto) SetItemType(v int64) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto {
|
||||||
|
s.ItemType = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto) SetTicket(v AlibabaAlscUnionElemePromotionItempromotionQueryItemTicket) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto {
|
||||||
|
s.Ticket = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,84 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest struct {
|
||||||
|
/*
|
||||||
|
会话ID(查询第一页为空,从第二页开始赋值,取值来自第一页返回结果) */
|
||||||
|
SessionId *string `json:"session_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品类型(hoard_coupon-囤券券) */
|
||||||
|
BizType *string `json:"biz_type,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
推广位 */
|
||||||
|
Pid *string `json:"pid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
城市编码(国标) */
|
||||||
|
CityCode *string `json:"city_code,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
排序(normal-佣金倒序,commission_desc-佣金倒序,commission_rate_desc-佣金比例倒序,sell_price_asc-价格正序,sell_price_desc-价格倒序) */
|
||||||
|
SortType *string `json:"sort_type,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
请求页(从1开始) */
|
||||||
|
PageNumber *int64 `json:"page_number,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
每页数(1~20) */
|
||||||
|
PageSize *int64 `json:"page_size,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
会员ID(需要联系运营申请) */
|
||||||
|
Sid *string `json:"sid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
品牌搜索 */
|
||||||
|
SearchContent *string `json:"search_content,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品类型,多值'|'分隔,默认全部(1-商品券;2-代金券) */
|
||||||
|
ItemType *string `json:"item_type,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest) SetSessionId(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest {
|
||||||
|
s.SessionId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest) SetBizType(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest {
|
||||||
|
s.BizType = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest) SetPid(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest {
|
||||||
|
s.Pid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest) SetCityCode(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest {
|
||||||
|
s.CityCode = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest) SetSortType(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest {
|
||||||
|
s.SortType = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest) SetPageNumber(v int64) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest {
|
||||||
|
s.PageNumber = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest) SetPageSize(v int64) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest {
|
||||||
|
s.PageSize = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest) SetSid(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest {
|
||||||
|
s.Sid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest) SetSearchContent(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest {
|
||||||
|
s.SearchContent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest) SetItemType(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionQueryRequest {
|
||||||
|
s.ItemType = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionItempromotionQueryItemTicket struct {
|
||||||
|
/*
|
||||||
|
价格(分) */
|
||||||
|
Price *int64 `json:"price,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
数量 */
|
||||||
|
Quantity *int64 `json:"quantity,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
使用门槛(分) */
|
||||||
|
Threshold *int64 `json:"threshold,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemTicket) SetPrice(v int64) *AlibabaAlscUnionElemePromotionItempromotionQueryItemTicket {
|
||||||
|
s.Price = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemTicket) SetQuantity(v int64) *AlibabaAlscUnionElemePromotionItempromotionQueryItemTicket {
|
||||||
|
s.Quantity = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryItemTicket) SetThreshold(v int64) *AlibabaAlscUnionElemePromotionItempromotionQueryItemTicket {
|
||||||
|
s.Threshold = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionItempromotionQueryPageModel struct {
|
||||||
|
/*
|
||||||
|
会话ID */
|
||||||
|
SessionId *string `json:"session_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
数据 */
|
||||||
|
Records *[]AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto `json:"records,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
页码 */
|
||||||
|
PageNumber *int64 `json:"page_number,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
每页数目 */
|
||||||
|
PageSize *int64 `json:"page_size,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
总数 */
|
||||||
|
Total *int64 `json:"total,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryPageModel) SetSessionId(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryPageModel {
|
||||||
|
s.SessionId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryPageModel) SetRecords(v []AlibabaAlscUnionElemePromotionItempromotionQueryItemPromotionDto) *AlibabaAlscUnionElemePromotionItempromotionQueryPageModel {
|
||||||
|
s.Records = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryPageModel) SetPageNumber(v int64) *AlibabaAlscUnionElemePromotionItempromotionQueryPageModel {
|
||||||
|
s.PageNumber = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryPageModel) SetPageSize(v int64) *AlibabaAlscUnionElemePromotionItempromotionQueryPageModel {
|
||||||
|
s.PageSize = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryPageModel) SetTotal(v int64) *AlibabaAlscUnionElemePromotionItempromotionQueryPageModel {
|
||||||
|
s.Total = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,36 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionItempromotionQueryPromotionLink struct {
|
||||||
|
/*
|
||||||
|
微信小程序appId */
|
||||||
|
WxAppid *string `json:"wx_appid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
微信小程序path链接 */
|
||||||
|
WxPath *string `json:"wx_path,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
微信小程序二维码 */
|
||||||
|
WxMiniQrcode *string `json:"wx_mini_qrcode,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
支付宝schemal链接 */
|
||||||
|
AlipaySchemeUrl *string `json:"alipay_scheme_url,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryPromotionLink) SetWxAppid(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryPromotionLink {
|
||||||
|
s.WxAppid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryPromotionLink) SetWxPath(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryPromotionLink {
|
||||||
|
s.WxPath = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryPromotionLink) SetWxMiniQrcode(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryPromotionLink {
|
||||||
|
s.WxMiniQrcode = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionQueryPromotionLink) SetAlipaySchemeUrl(v string) *AlibabaAlscUnionElemePromotionItempromotionQueryPromotionLink {
|
||||||
|
s.AlipaySchemeUrl = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionItempromotionStoreQueryItemPromotionShopRequest struct {
|
||||||
|
/*
|
||||||
|
商品ID */
|
||||||
|
ItemId *string `json:"item_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
请求页(从1开始) */
|
||||||
|
PageNumber *int64 `json:"page_number,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
每页数(1~20) */
|
||||||
|
PageSize *int64 `json:"page_size,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionStoreQueryItemPromotionShopRequest) SetItemId(v string) *AlibabaAlscUnionElemePromotionItempromotionStoreQueryItemPromotionShopRequest {
|
||||||
|
s.ItemId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionStoreQueryItemPromotionShopRequest) SetPageNumber(v int64) *AlibabaAlscUnionElemePromotionItempromotionStoreQueryItemPromotionShopRequest {
|
||||||
|
s.PageNumber = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionStoreQueryItemPromotionShopRequest) SetPageSize(v int64) *AlibabaAlscUnionElemePromotionItempromotionStoreQueryItemPromotionShopRequest {
|
||||||
|
s.PageSize = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionItempromotionStoreQueryItemPromotionStoreDto struct {
|
||||||
|
/*
|
||||||
|
门店ID */
|
||||||
|
StoreId *string `json:"store_id,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionStoreQueryItemPromotionStoreDto) SetStoreId(v string) *AlibabaAlscUnionElemePromotionItempromotionStoreQueryItemPromotionStoreDto {
|
||||||
|
s.StoreId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionItempromotionStoreQueryPageModel struct {
|
||||||
|
/*
|
||||||
|
分页记录 */
|
||||||
|
Records *[]AlibabaAlscUnionElemePromotionItempromotionStoreQueryItemPromotionStoreDto `json:"records,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
总数 */
|
||||||
|
TotalCount *int64 `json:"total_count,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionStoreQueryPageModel) SetRecords(v []AlibabaAlscUnionElemePromotionItempromotionStoreQueryItemPromotionStoreDto) *AlibabaAlscUnionElemePromotionItempromotionStoreQueryPageModel {
|
||||||
|
s.Records = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionItempromotionStoreQueryPageModel) SetTotalCount(v int64) *AlibabaAlscUnionElemePromotionItempromotionStoreQueryPageModel {
|
||||||
|
s.TotalCount = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,60 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto struct {
|
||||||
|
/*
|
||||||
|
活动ID */
|
||||||
|
Id *string `json:"id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
标题 */
|
||||||
|
Title *string `json:"title,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
描述 */
|
||||||
|
Description *string `json:"description,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
活动创意图片 */
|
||||||
|
Picture *string `json:"picture,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
起始时间(秒) */
|
||||||
|
StartTime *int64 `json:"start_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
结束时间(秒) */
|
||||||
|
EndTime *int64 `json:"end_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
推广链接 */
|
||||||
|
Link *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink `json:"link,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto) SetId(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto {
|
||||||
|
s.Id = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto) SetTitle(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto {
|
||||||
|
s.Title = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto) SetDescription(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto {
|
||||||
|
s.Description = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto) SetPicture(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto {
|
||||||
|
s.Picture = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto) SetStartTime(v int64) *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto {
|
||||||
|
s.StartTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto) SetEndTime(v int64) *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto {
|
||||||
|
s.EndTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto) SetLink(v AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink) *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto {
|
||||||
|
s.Link = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest struct {
|
||||||
|
/*
|
||||||
|
渠道PID */
|
||||||
|
Pid *string `json:"pid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
活动ID */
|
||||||
|
ActivityId *string `json:"activity_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
三方会员id。长度限制50 */
|
||||||
|
Sid *string `json:"sid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
是否返回微信推广图片 */
|
||||||
|
IncludeWxImg *bool `json:"include_wx_img,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
是否包含二维码,如果为false,不返回二维码和图片,只有链接 */
|
||||||
|
IncludeQrCode *bool `json:"include_qr_code,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest) SetPid(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest {
|
||||||
|
s.Pid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest) SetActivityId(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest {
|
||||||
|
s.ActivityId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest) SetSid(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest {
|
||||||
|
s.Sid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest) SetIncludeWxImg(v bool) *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest {
|
||||||
|
s.IncludeWxImg = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest) SetIncludeQrCode(v bool) *AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest {
|
||||||
|
s.IncludeQrCode = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,124 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink struct {
|
||||||
|
/*
|
||||||
|
小程序appId */
|
||||||
|
WxAppid *string `json:"wx_appid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
微信小程序path链接 */
|
||||||
|
WxPath *string `json:"wx_path,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
推广图片地址 */
|
||||||
|
Picture *string `json:"picture,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
支付宝小程序推广链接 */
|
||||||
|
AlipayMiniUrl *string `json:"alipay_mini_url,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
h5推广地址 */
|
||||||
|
H5Url *string `json:"h5_url,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
淘宝二维码图片地址 */
|
||||||
|
TbQrCode *string `json:"tb_qr_code,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
微信独立二维码 */
|
||||||
|
MiniQrcode *string `json:"mini_qrcode,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
淘宝独立二维码 */
|
||||||
|
TbMiniQrcode *string `json:"tb_mini_qrcode,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
饿了么唤端链接 */
|
||||||
|
EleSchemeUrl *string `json:"ele_scheme_url,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
h5推广地址短链 */
|
||||||
|
H5ShortLink *string `json:"h5_short_link,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
H5二维码图片地址 */
|
||||||
|
H5MiniQrcode *string `json:"h5_mini_qrcode,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
饿了么口令(有效期30天,建议到期前重新获取) */
|
||||||
|
ElemeWord *string `json:"eleme_word,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
淘宝唤端链接 */
|
||||||
|
TbSchemeUrl *string `json:"tb_scheme_url,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
淘口令(有效期30天,建议到期前重新获取) */
|
||||||
|
TaobaoWord *string `json:"taobao_word,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
带文案淘口令(有效期30天,建议到期前重新获取) */
|
||||||
|
FullTaobaoWord *string `json:"full_taobao_word,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink) SetWxAppid(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink {
|
||||||
|
s.WxAppid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink) SetWxPath(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink {
|
||||||
|
s.WxPath = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink) SetPicture(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink {
|
||||||
|
s.Picture = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink) SetAlipayMiniUrl(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink {
|
||||||
|
s.AlipayMiniUrl = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink) SetH5Url(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink {
|
||||||
|
s.H5Url = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink) SetTbQrCode(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink {
|
||||||
|
s.TbQrCode = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink) SetMiniQrcode(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink {
|
||||||
|
s.MiniQrcode = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink) SetTbMiniQrcode(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink {
|
||||||
|
s.TbMiniQrcode = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink) SetEleSchemeUrl(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink {
|
||||||
|
s.EleSchemeUrl = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink) SetH5ShortLink(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink {
|
||||||
|
s.H5ShortLink = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink) SetH5MiniQrcode(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink {
|
||||||
|
s.H5MiniQrcode = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink) SetElemeWord(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink {
|
||||||
|
s.ElemeWord = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink) SetTbSchemeUrl(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink {
|
||||||
|
s.TbSchemeUrl = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink) SetTaobaoWord(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink {
|
||||||
|
s.TaobaoWord = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink) SetFullTaobaoWord(v string) *AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink {
|
||||||
|
s.FullTaobaoWord = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,68 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity struct {
|
||||||
|
/*
|
||||||
|
活动Id */
|
||||||
|
ActivityId *string `json:"activity_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
营销计划服务费(分) */
|
||||||
|
ServiceFeeCent *int64 `json:"service_fee_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
奖励金红包面额(分) */
|
||||||
|
BonusCent *int64 `json:"bonus_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
活动的日库存 */
|
||||||
|
DailyQuantity *int64 `json:"daily_quantity,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
活动日剩余库存 */
|
||||||
|
DailySellableQuantity *int64 `json:"daily_sellable_quantity,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
起始时间(秒) */
|
||||||
|
StartTime *int64 `json:"start_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
结束时间(秒) */
|
||||||
|
EndTime *int64 `json:"end_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
奖励金门槛 (分) */
|
||||||
|
BountyMinLimitCent *int64 `json:"bounty_min_limit_cent,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity) SetActivityId(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity {
|
||||||
|
s.ActivityId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity) SetServiceFeeCent(v int64) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity {
|
||||||
|
s.ServiceFeeCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity) SetBonusCent(v int64) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity {
|
||||||
|
s.BonusCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity) SetDailyQuantity(v int64) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity {
|
||||||
|
s.DailyQuantity = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity) SetDailySellableQuantity(v int64) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity {
|
||||||
|
s.DailySellableQuantity = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity) SetStartTime(v int64) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity {
|
||||||
|
s.StartTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity) SetEndTime(v int64) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity {
|
||||||
|
s.EndTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity) SetBountyMinLimitCent(v int64) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity {
|
||||||
|
s.BountyMinLimitCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,36 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionStorepromotionGetPromotionItem struct {
|
||||||
|
/*
|
||||||
|
标题 */
|
||||||
|
Title *string `json:"title,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
原价 */
|
||||||
|
OriginPrice *string `json:"origin_price,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
现价 */
|
||||||
|
Price *string `json:"price,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
图片 */
|
||||||
|
Picture *string `json:"picture,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionItem) SetTitle(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionItem {
|
||||||
|
s.Title = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionItem) SetOriginPrice(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionItem {
|
||||||
|
s.OriginPrice = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionItem) SetPrice(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionItem {
|
||||||
|
s.Price = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionItem) SetPicture(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionItem {
|
||||||
|
s.Picture = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,76 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink struct {
|
||||||
|
/*
|
||||||
|
小程序appId */
|
||||||
|
WxAppid *string `json:"wx_appid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
微信小程序path链接 */
|
||||||
|
WxPath *string `json:"wx_path,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
推广图片地址,图片上展示店铺小程序二维码 */
|
||||||
|
Picture *string `json:"picture,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
小程序appId-立减活动 */
|
||||||
|
ReduceWxAppid *string `json:"reduce_wx_appid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
微信小程序path链接-立减活动 */
|
||||||
|
ReduceWxPath *string `json:"reduce_wx_path,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
推广图片地址-立减活动,图片上展示店铺小程序二维码 */
|
||||||
|
ReducePicture *string `json:"reduce_picture,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
独立微信二维码 */
|
||||||
|
MiniQrcode *string `json:"mini_qrcode,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
小程序appId-媒体出资活动 */
|
||||||
|
MediaActivityWxAppid *string `json:"media_activity_wx_appid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
微信小程序path链接-媒体出资活动 */
|
||||||
|
MediaActivityWxPath *string `json:"media_activity_wx_path,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink) SetWxAppid(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink {
|
||||||
|
s.WxAppid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink) SetWxPath(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink {
|
||||||
|
s.WxPath = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink) SetPicture(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink {
|
||||||
|
s.Picture = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink) SetReduceWxAppid(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink {
|
||||||
|
s.ReduceWxAppid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink) SetReduceWxPath(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink {
|
||||||
|
s.ReduceWxPath = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink) SetReducePicture(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink {
|
||||||
|
s.ReducePicture = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink) SetMiniQrcode(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink {
|
||||||
|
s.MiniQrcode = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink) SetMediaActivityWxAppid(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink {
|
||||||
|
s.MediaActivityWxAppid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink) SetMediaActivityWxPath(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink {
|
||||||
|
s.MediaActivityWxPath = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,52 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest struct {
|
||||||
|
/*
|
||||||
|
渠道PID */
|
||||||
|
Pid *string `json:"pid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
门店ID(加密,具有时效性,建议每天更新一次) */
|
||||||
|
ShopId *string `json:"shop_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
活动ID */
|
||||||
|
ActivityId *string `json:"activity_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
三方扩展id */
|
||||||
|
Sid *string `json:"sid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
是否返回微信推广图片 */
|
||||||
|
IncludeWxImg *bool `json:"include_wx_img,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
媒体出资活动ID */
|
||||||
|
MediaActivityId *string `json:"media_activity_id,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest) SetPid(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest {
|
||||||
|
s.Pid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest) SetShopId(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest {
|
||||||
|
s.ShopId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest) SetActivityId(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest {
|
||||||
|
s.ActivityId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest) SetSid(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest {
|
||||||
|
s.Sid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest) SetIncludeWxImg(v bool) *AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest {
|
||||||
|
s.IncludeWxImg = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest) SetMediaActivityId(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest {
|
||||||
|
s.MediaActivityId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,124 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto struct {
|
||||||
|
/*
|
||||||
|
门店名称 */
|
||||||
|
Title *string `json:"title,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
门店logo */
|
||||||
|
ShopLogo *string `json:"shop_logo,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
模糊销量 */
|
||||||
|
IndistinctMonthlySales *string `json:"indistinct_monthly_sales,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
佣金比例 */
|
||||||
|
CommissionRate *string `json:"commission_rate,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
店铺类型("activityCps":活动cps,"ordinaryCps":基础cps) */
|
||||||
|
BizType *string `json:"biz_type,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
活动数据 */
|
||||||
|
Activity *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity `json:"activity,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
推广链接 */
|
||||||
|
Link *AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink `json:"link,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
一级类目ID */
|
||||||
|
Category1Id *string `json:"category_1_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
起送价(元) */
|
||||||
|
DeliveryPrice *string `json:"delivery_price,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
推荐理由 */
|
||||||
|
RecommendReasons *[]string `json:"recommend_reasons,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
服务评级 */
|
||||||
|
ServiceRating *string `json:"service_rating,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
推荐商品 */
|
||||||
|
Items *[]AlibabaAlscUnionElemePromotionStorepromotionGetPromotionItem `json:"items,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
一级类目名称 */
|
||||||
|
Category1Name *string `json:"category_1_name,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
满减标签 */
|
||||||
|
DiscountTags *[]string `json:"discount_tags,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
配送费(元) */
|
||||||
|
DeliveryFee *string `json:"delivery_fee,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto) SetTitle(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto {
|
||||||
|
s.Title = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto) SetShopLogo(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto {
|
||||||
|
s.ShopLogo = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto) SetIndistinctMonthlySales(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto {
|
||||||
|
s.IndistinctMonthlySales = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto) SetCommissionRate(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto {
|
||||||
|
s.CommissionRate = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto) SetBizType(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto {
|
||||||
|
s.BizType = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto) SetActivity(v AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity) *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto {
|
||||||
|
s.Activity = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto) SetLink(v AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink) *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto {
|
||||||
|
s.Link = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto) SetCategory1Id(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto {
|
||||||
|
s.Category1Id = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto) SetDeliveryPrice(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto {
|
||||||
|
s.DeliveryPrice = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto) SetRecommendReasons(v []string) *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto {
|
||||||
|
s.RecommendReasons = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto) SetServiceRating(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto {
|
||||||
|
s.ServiceRating = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto) SetItems(v []AlibabaAlscUnionElemePromotionStorepromotionGetPromotionItem) *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto {
|
||||||
|
s.Items = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto) SetCategory1Name(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto {
|
||||||
|
s.Category1Name = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto) SetDiscountTags(v []string) *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto {
|
||||||
|
s.DiscountTags = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto) SetDeliveryFee(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto {
|
||||||
|
s.DeliveryFee = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionStorepromotionQueryPageModel struct {
|
||||||
|
/*
|
||||||
|
会话ID(下次请求作为请求参数,用于标记分页会话自动翻页) */
|
||||||
|
SessionId *string `json:"session_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
分页记录 */
|
||||||
|
Records *[]AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto `json:"records,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
每页数目 */
|
||||||
|
PageSize *int64 `json:"page_size,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPageModel) SetSessionId(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPageModel {
|
||||||
|
s.SessionId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPageModel) SetRecords(v []AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) *AlibabaAlscUnionElemePromotionStorepromotionQueryPageModel {
|
||||||
|
s.Records = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPageModel) SetPageSize(v int64) *AlibabaAlscUnionElemePromotionStorepromotionQueryPageModel {
|
||||||
|
s.PageSize = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,68 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity struct {
|
||||||
|
/*
|
||||||
|
活动Id */
|
||||||
|
ActivityId *string `json:"activity_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
营销计划服务费(分) */
|
||||||
|
ServiceFeeCent *int64 `json:"service_fee_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
奖励金红包面额(分) */
|
||||||
|
BonusCent *int64 `json:"bonus_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
活动的日库存 */
|
||||||
|
DailyQuantity *int64 `json:"daily_quantity,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
活动日剩余库存 */
|
||||||
|
DailySellableQuantity *int64 `json:"daily_sellable_quantity,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
起始时间(秒) */
|
||||||
|
StartTime *int64 `json:"start_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
结束时间(秒) */
|
||||||
|
EndTime *int64 `json:"end_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
奖励金门槛 (分) */
|
||||||
|
BountyMinLimitCent *int64 `json:"bounty_min_limit_cent,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity) SetActivityId(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity {
|
||||||
|
s.ActivityId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity) SetServiceFeeCent(v int64) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity {
|
||||||
|
s.ServiceFeeCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity) SetBonusCent(v int64) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity {
|
||||||
|
s.BonusCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity) SetDailyQuantity(v int64) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity {
|
||||||
|
s.DailyQuantity = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity) SetDailySellableQuantity(v int64) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity {
|
||||||
|
s.DailySellableQuantity = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity) SetStartTime(v int64) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity {
|
||||||
|
s.StartTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity) SetEndTime(v int64) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity {
|
||||||
|
s.EndTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity) SetBountyMinLimitCent(v int64) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity {
|
||||||
|
s.BountyMinLimitCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,36 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionItem struct {
|
||||||
|
/*
|
||||||
|
标题 */
|
||||||
|
Title *string `json:"title,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
原价 */
|
||||||
|
OriginPrice *string `json:"origin_price,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
现价 */
|
||||||
|
Price *string `json:"price,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
图片 */
|
||||||
|
Picture *string `json:"picture,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionItem) SetTitle(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionItem {
|
||||||
|
s.Title = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionItem) SetOriginPrice(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionItem {
|
||||||
|
s.OriginPrice = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionItem) SetPrice(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionItem {
|
||||||
|
s.Price = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionItem) SetPicture(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionItem {
|
||||||
|
s.Picture = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,52 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink struct {
|
||||||
|
/*
|
||||||
|
小程序appId */
|
||||||
|
WxAppid *string `json:"wx_appid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
微信小程序path链接 */
|
||||||
|
WxPath *string `json:"wx_path,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
小程序appId-立减活动 */
|
||||||
|
ReduceWxAppid *string `json:"reduce_wx_appid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
微信小程序path链接-立减活动 */
|
||||||
|
ReduceWxPath *string `json:"reduce_wx_path,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
小程序appId-媒体出资活动 */
|
||||||
|
MediaActivityWxAppid *string `json:"media_activity_wx_appid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
微信小程序path链接-媒体出资活动 */
|
||||||
|
MediaActivityWxPath *string `json:"media_activity_wx_path,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink) SetWxAppid(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink {
|
||||||
|
s.WxAppid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink) SetWxPath(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink {
|
||||||
|
s.WxPath = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink) SetReduceWxAppid(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink {
|
||||||
|
s.ReduceWxAppid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink) SetReduceWxPath(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink {
|
||||||
|
s.ReduceWxPath = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink) SetMediaActivityWxAppid(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink {
|
||||||
|
s.MediaActivityWxAppid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink) SetMediaActivityWxPath(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink {
|
||||||
|
s.MediaActivityWxPath = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,132 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest struct {
|
||||||
|
/*
|
||||||
|
会话ID(分页场景首次请求结果返回,后续请求必须携带,服务根据session_id相同请求次数自动翻页返回) */
|
||||||
|
SessionId *string `json:"session_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
渠道PID */
|
||||||
|
Pid *string `json:"pid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
经度 */
|
||||||
|
Longitude *string `json:"longitude,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
纬度 */
|
||||||
|
Latitude *string `json:"latitude,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
城市编码(只用于经纬度覆盖多个城市时过滤) */
|
||||||
|
CityId *string `json:"city_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
排序类型,默认normal,排序规则包括:{"normal":"佣金倒序","distance":"距离由近到远","commission":"佣金倒序","monthlySale":"月销量","couponAmount":"叠加券金额倒序","activityReward":"奖励金金额倒序","commissionRate":"佣金比例倒序"} */
|
||||||
|
SortType *string `json:"sort_type,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
是否参与奖励金活动(默认false不做过滤) */
|
||||||
|
InActivity *bool `json:"in_activity,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
否当前有c端奖励金活动库存(默认false不做过滤) */
|
||||||
|
HasBonusStock *bool `json:"has_bonus_stock,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
店铺佣金比例下限,代表筛选店铺全店佣金大于等于0.01的店铺 */
|
||||||
|
MinCommissionRate *string `json:"min_commission_rate,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
每页数量(1~20,默认20) */
|
||||||
|
PageSize *int64 `json:"page_size,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
三方扩展id */
|
||||||
|
Sid *string `json:"sid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
指定召回供给枚举 */
|
||||||
|
BizType *string `json:"biz_type,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
以一级类目进行类目限定,以,或者|进行类目分隔 */
|
||||||
|
FilterFirstCategories *string `json:"filter_first_categories,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
1.5级类目查询,以"|"分隔 */
|
||||||
|
FilterOnePointFiveCategories *string `json:"filter_one_point_five_categories,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
媒体出资活动ID */
|
||||||
|
MediaActivityId *string `json:"media_activity_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
检索内容(支持门店名称) */
|
||||||
|
SearchContent *string `json:"search_content,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) SetSessionId(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
|
||||||
|
s.SessionId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) SetPid(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
|
||||||
|
s.Pid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) SetLongitude(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
|
||||||
|
s.Longitude = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) SetLatitude(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
|
||||||
|
s.Latitude = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) SetCityId(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
|
||||||
|
s.CityId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) SetSortType(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
|
||||||
|
s.SortType = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) SetInActivity(v bool) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
|
||||||
|
s.InActivity = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) SetHasBonusStock(v bool) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
|
||||||
|
s.HasBonusStock = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) SetMinCommissionRate(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
|
||||||
|
s.MinCommissionRate = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) SetPageSize(v int64) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
|
||||||
|
s.PageSize = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) SetSid(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
|
||||||
|
s.Sid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) SetBizType(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
|
||||||
|
s.BizType = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) SetFilterFirstCategories(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
|
||||||
|
s.FilterFirstCategories = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) SetFilterOnePointFiveCategories(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
|
||||||
|
s.FilterOnePointFiveCategories = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) SetMediaActivityId(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
|
||||||
|
s.MediaActivityId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) SetSearchContent(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
|
||||||
|
s.SearchContent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,156 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto struct {
|
||||||
|
/*
|
||||||
|
门店名称 */
|
||||||
|
Title *string `json:"title,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
门店logo */
|
||||||
|
ShopLogo *string `json:"shop_logo,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
模糊销量 */
|
||||||
|
IndistinctMonthlySales *string `json:"indistinct_monthly_sales,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
佣金比例 */
|
||||||
|
CommissionRate *string `json:"commission_rate,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
店铺类型("activityCps":活动cps,"ordinaryCps":基础cps) */
|
||||||
|
BizType *string `json:"biz_type,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
奖励金活动数据 */
|
||||||
|
Activity *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity `json:"activity,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
推广链接 */
|
||||||
|
Link *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink `json:"link,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
一级类目ID,高级字段 */
|
||||||
|
Category1Id *string `json:"category_1_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
配送距离(米),高级字段 */
|
||||||
|
DeliveryDistance *int64 `json:"delivery_distance,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
配送时间(分),高级字段 */
|
||||||
|
DeliveryTime *int64 `json:"delivery_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
起送价(元),高级字段 */
|
||||||
|
DeliveryPrice *string `json:"delivery_price,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
推荐理由,高级字段 */
|
||||||
|
RecommendReasons *[]string `json:"recommend_reasons,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
服务评级,高级字段 */
|
||||||
|
ServiceRating *string `json:"service_rating,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
推荐商品,高级字段 */
|
||||||
|
Items *[]AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionItem `json:"items,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
店铺ID(加密,有效期90天) */
|
||||||
|
ShopId *string `json:"shop_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
一级类目名称,高级字段 */
|
||||||
|
Category1Name *string `json:"category_1_name,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
预估佣金(分) */
|
||||||
|
Commission *int64 `json:"commission,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
满减标签,高级字段 */
|
||||||
|
DiscountTags *[]string `json:"discount_tags,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
配送费(元),高级字段 */
|
||||||
|
DeliveryFee *string `json:"delivery_fee,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetTitle(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.Title = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetShopLogo(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.ShopLogo = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetIndistinctMonthlySales(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.IndistinctMonthlySales = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetCommissionRate(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.CommissionRate = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetBizType(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.BizType = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetActivity(v AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.Activity = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetLink(v AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.Link = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetCategory1Id(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.Category1Id = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetDeliveryDistance(v int64) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.DeliveryDistance = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetDeliveryTime(v int64) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.DeliveryTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetDeliveryPrice(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.DeliveryPrice = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetRecommendReasons(v []string) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.RecommendReasons = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetServiceRating(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.ServiceRating = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetItems(v []AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionItem) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.Items = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetShopId(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.ShopId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetCategory1Name(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.Category1Name = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetCommission(v int64) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.Commission = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetDiscountTags(v []string) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.DiscountTags = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetDeliveryFee(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
|
||||||
|
s.DeliveryFee = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetPromotionLink struct {
|
||||||
|
/*
|
||||||
|
小程序appId */
|
||||||
|
WxAppid *string `json:"wx_appid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
微信小程序path链接 */
|
||||||
|
WxPath *string `json:"wx_path,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetPromotionLink) SetWxAppid(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetPromotionLink {
|
||||||
|
s.WxAppid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetPromotionLink) SetWxPath(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetPromotionLink {
|
||||||
|
s.WxPath = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,76 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity struct {
|
||||||
|
/*
|
||||||
|
活动ID */
|
||||||
|
ActivityId *string `json:"activity_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
开始时间(秒) */
|
||||||
|
StartTime *int64 `json:"start_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
结束时间(秒) */
|
||||||
|
EndTime *int64 `json:"end_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
活动的日库存 */
|
||||||
|
DailyStock *int64 `json:"daily_stock,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
活动日剩余库存 */
|
||||||
|
DailyRemainStock *int64 `json:"daily_remain_stock,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
返现金额(分) */
|
||||||
|
RewardCent *string `json:"reward_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
返现门槛(分) */
|
||||||
|
RewardThresholdCent *string `json:"reward_threshold_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
佣金比例 */
|
||||||
|
CommissionRate *string `json:"commission_rate,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
预估佣金(分) */
|
||||||
|
Commission *string `json:"commission,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity) SetActivityId(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity {
|
||||||
|
s.ActivityId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity) SetStartTime(v int64) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity {
|
||||||
|
s.StartTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity) SetEndTime(v int64) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity {
|
||||||
|
s.EndTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity) SetDailyStock(v int64) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity {
|
||||||
|
s.DailyStock = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity) SetDailyRemainStock(v int64) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity {
|
||||||
|
s.DailyRemainStock = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity) SetRewardCent(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity {
|
||||||
|
s.RewardCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity) SetRewardThresholdCent(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity {
|
||||||
|
s.RewardThresholdCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity) SetCommissionRate(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity {
|
||||||
|
s.CommissionRate = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity) SetCommission(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity {
|
||||||
|
s.Commission = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,100 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto struct {
|
||||||
|
/*
|
||||||
|
门店ID(加密) */
|
||||||
|
ShopId *string `json:"shop_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
门店名称 */
|
||||||
|
ShopName *string `json:"shop_name,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
门店主图 */
|
||||||
|
ShopPicture *string `json:"shop_picture,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
月销量(模糊) */
|
||||||
|
IndistinctMonthlySales *string `json:"indistinct_monthly_sales,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
一级类目ID */
|
||||||
|
Category1Id *string `json:"category_1_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
一级类目名称 */
|
||||||
|
Category1Name *string `json:"category_1_name,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
配送距离(米) */
|
||||||
|
DeliveryDistance *int64 `json:"delivery_distance,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
配送时间(分) */
|
||||||
|
DeliveryTime *int64 `json:"delivery_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
起送价(分) */
|
||||||
|
DeliveryPriceCent *int64 `json:"delivery_price_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
服务评级 */
|
||||||
|
ServiceRating *string `json:"service_rating,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
推广链接 */
|
||||||
|
Link *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetPromotionLink `json:"link,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
活动 */
|
||||||
|
Activities *[]AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity `json:"activities,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto) SetShopId(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto {
|
||||||
|
s.ShopId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto) SetShopName(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto {
|
||||||
|
s.ShopName = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto) SetShopPicture(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto {
|
||||||
|
s.ShopPicture = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto) SetIndistinctMonthlySales(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto {
|
||||||
|
s.IndistinctMonthlySales = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto) SetCategory1Id(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto {
|
||||||
|
s.Category1Id = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto) SetCategory1Name(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto {
|
||||||
|
s.Category1Name = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto) SetDeliveryDistance(v int64) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto {
|
||||||
|
s.DeliveryDistance = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto) SetDeliveryTime(v int64) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto {
|
||||||
|
s.DeliveryTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto) SetDeliveryPriceCent(v int64) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto {
|
||||||
|
s.DeliveryPriceCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto) SetServiceRating(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto {
|
||||||
|
s.ServiceRating = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto) SetLink(v AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetPromotionLink) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto {
|
||||||
|
s.Link = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto) SetActivities(v []AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcActivity) *AlibabaAlscUnionElemeStorepromotionReviewbwcDetailGetReviewBwcStorePromotionDto {
|
||||||
|
s.Activities = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemeStorepromotionReviewbwcQueryPageModel struct {
|
||||||
|
/*
|
||||||
|
会话ID(下次请求作为请求参数,用于标记分页会话自动翻页) */
|
||||||
|
SessionId *string `json:"session_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
分页记录(记录空时表示当前sessionId对应分页记录已全部返回,分页结束) */
|
||||||
|
Records *[]AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto `json:"records,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryPageModel) SetSessionId(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryPageModel {
|
||||||
|
s.SessionId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryPageModel) SetRecords(v []AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryPageModel {
|
||||||
|
s.Records = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemeStorepromotionReviewbwcQueryPromotionItem struct {
|
||||||
|
/*
|
||||||
|
小程序appId */
|
||||||
|
WxAppid *string `json:"wx_appid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
微信小程序path链接 */
|
||||||
|
WxPath *string `json:"wx_path,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryPromotionItem) SetWxAppid(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryPromotionItem {
|
||||||
|
s.WxAppid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryPromotionItem) SetWxPath(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryPromotionItem {
|
||||||
|
s.WxPath = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,76 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity struct {
|
||||||
|
/*
|
||||||
|
活动ID */
|
||||||
|
ActivityId *string `json:"activity_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
开始时间(秒) */
|
||||||
|
StartTime *int64 `json:"start_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
结束时间(秒) */
|
||||||
|
EndTime *int64 `json:"end_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
活动的日库存 */
|
||||||
|
DailyStock *int64 `json:"daily_stock,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
活动日剩余库存 */
|
||||||
|
DailyRemainStock *int64 `json:"daily_remain_stock,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
返现金额(分) */
|
||||||
|
RewardCent *string `json:"reward_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
返现门槛(分) */
|
||||||
|
RewardThresholdCent *string `json:"reward_threshold_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
佣金比例 */
|
||||||
|
CommissionRate *string `json:"commission_rate,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
预估佣金(分) */
|
||||||
|
Commission *string `json:"commission,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity) SetActivityId(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity {
|
||||||
|
s.ActivityId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity) SetStartTime(v int64) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity {
|
||||||
|
s.StartTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity) SetEndTime(v int64) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity {
|
||||||
|
s.EndTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity) SetDailyStock(v int64) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity {
|
||||||
|
s.DailyStock = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity) SetDailyRemainStock(v int64) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity {
|
||||||
|
s.DailyRemainStock = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity) SetRewardCent(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity {
|
||||||
|
s.RewardCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity) SetRewardThresholdCent(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity {
|
||||||
|
s.RewardThresholdCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity) SetCommissionRate(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity {
|
||||||
|
s.CommissionRate = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity) SetCommission(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity {
|
||||||
|
s.Commission = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,100 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto struct {
|
||||||
|
/*
|
||||||
|
门店ID(加密) */
|
||||||
|
ShopId *string `json:"shop_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
门店名称 */
|
||||||
|
ShopName *string `json:"shop_name,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
门店主图 */
|
||||||
|
ShopPicture *string `json:"shop_picture,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
月销量(模糊) */
|
||||||
|
IndistinctMonthlySales *string `json:"indistinct_monthly_sales,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
一级类目ID */
|
||||||
|
Category1Id *string `json:"category_1_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
一级类目名称 */
|
||||||
|
Category1Name *string `json:"category_1_name,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
配送距离(米) */
|
||||||
|
DeliveryDistance *int64 `json:"delivery_distance,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
配送时间(分) */
|
||||||
|
DeliveryTime *int64 `json:"delivery_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
起送价(分) */
|
||||||
|
DeliveryPriceCent *int64 `json:"delivery_price_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
服务评级 */
|
||||||
|
ServiceRating *string `json:"service_rating,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
推广链接 */
|
||||||
|
Link *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryPromotionItem `json:"link,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
活动 */
|
||||||
|
Activities *[]AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity `json:"activities,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto) SetShopId(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto {
|
||||||
|
s.ShopId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto) SetShopName(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto {
|
||||||
|
s.ShopName = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto) SetShopPicture(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto {
|
||||||
|
s.ShopPicture = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto) SetIndistinctMonthlySales(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto {
|
||||||
|
s.IndistinctMonthlySales = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto) SetCategory1Id(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto {
|
||||||
|
s.Category1Id = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto) SetCategory1Name(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto {
|
||||||
|
s.Category1Name = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto) SetDeliveryDistance(v int64) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto {
|
||||||
|
s.DeliveryDistance = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto) SetDeliveryTime(v int64) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto {
|
||||||
|
s.DeliveryTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto) SetDeliveryPriceCent(v int64) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto {
|
||||||
|
s.DeliveryPriceCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto) SetServiceRating(v string) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto {
|
||||||
|
s.ServiceRating = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto) SetLink(v AlibabaAlscUnionElemeStorepromotionReviewbwcQueryPromotionItem) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto {
|
||||||
|
s.Link = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto) SetActivities(v []AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcActivity) *AlibabaAlscUnionElemeStorepromotionReviewbwcQueryReviewBwcStorePromotionDto {
|
||||||
|
s.Activities = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemeStorepromotionReviewbwcStockLockReviewBwcStockLockResult struct {
|
||||||
|
/*
|
||||||
|
库存锁定ID */
|
||||||
|
LockId *int64 `json:"lock_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
库存锁定时时间戳(毫秒) */
|
||||||
|
LockTime *int64 `json:"lock_time,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcStockLockReviewBwcStockLockResult) SetLockId(v int64) *AlibabaAlscUnionElemeStorepromotionReviewbwcStockLockReviewBwcStockLockResult {
|
||||||
|
s.LockId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcStockLockReviewBwcStockLockResult) SetLockTime(v int64) *AlibabaAlscUnionElemeStorepromotionReviewbwcStockLockReviewBwcStockLockResult {
|
||||||
|
s.LockTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemeStorepromotionReviewbwcStockReleaseReviewBwcStockReleaseResult struct {
|
||||||
|
/*
|
||||||
|
库存锁定ID */
|
||||||
|
LockId *int64 `json:"lock_id,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemeStorepromotionReviewbwcStockReleaseReviewBwcStockReleaseResult) SetLockId(v int64) *AlibabaAlscUnionElemeStorepromotionReviewbwcStockReleaseReviewBwcStockReleaseResult {
|
||||||
|
s.LockId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemeToolOrderAttrbuteCheckAttributionDetailInfo struct {
|
||||||
|
/*
|
||||||
|
归因类型 */
|
||||||
|
BizType *string `json:"biz_type,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
归因结果,1.归因成功 2.归因失败 */
|
||||||
|
Result *int64 `json:"result,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
归因失败原因 */
|
||||||
|
Reason *string `json:"reason,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemeToolOrderAttrbuteCheckAttributionDetailInfo) SetBizType(v string) *AlibabaAlscUnionElemeToolOrderAttrbuteCheckAttributionDetailInfo {
|
||||||
|
s.BizType = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeToolOrderAttrbuteCheckAttributionDetailInfo) SetResult(v int64) *AlibabaAlscUnionElemeToolOrderAttrbuteCheckAttributionDetailInfo {
|
||||||
|
s.Result = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeToolOrderAttrbuteCheckAttributionDetailInfo) SetReason(v string) *AlibabaAlscUnionElemeToolOrderAttrbuteCheckAttributionDetailInfo {
|
||||||
|
s.Reason = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,12 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemeToolOrderAttrbuteCheckOrderCheckRequest struct {
|
||||||
|
/*
|
||||||
|
饿了么订单id */
|
||||||
|
OrderId *string `json:"order_id,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemeToolOrderAttrbuteCheckOrderCheckRequest) SetOrderId(v string) *AlibabaAlscUnionElemeToolOrderAttrbuteCheckOrderCheckRequest {
|
||||||
|
s.OrderId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,52 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemeToolOrderAttrbuteCheckOrderInfo struct {
|
||||||
|
/*
|
||||||
|
订单号 */
|
||||||
|
OrderNo *string `json:"order_no,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
店铺名称 */
|
||||||
|
ShopName *string `json:"shop_name,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
订单类型 */
|
||||||
|
TypeName *string `json:"type_name,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
订单创建时间 */
|
||||||
|
CreateTime *string `json:"create_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
订单完成时间 */
|
||||||
|
FinishTime *string `json:"finish_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
订单结算时间 */
|
||||||
|
SettleDate *string `json:"settle_date,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemeToolOrderAttrbuteCheckOrderInfo) SetOrderNo(v string) *AlibabaAlscUnionElemeToolOrderAttrbuteCheckOrderInfo {
|
||||||
|
s.OrderNo = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeToolOrderAttrbuteCheckOrderInfo) SetShopName(v string) *AlibabaAlscUnionElemeToolOrderAttrbuteCheckOrderInfo {
|
||||||
|
s.ShopName = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeToolOrderAttrbuteCheckOrderInfo) SetTypeName(v string) *AlibabaAlscUnionElemeToolOrderAttrbuteCheckOrderInfo {
|
||||||
|
s.TypeName = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeToolOrderAttrbuteCheckOrderInfo) SetCreateTime(v string) *AlibabaAlscUnionElemeToolOrderAttrbuteCheckOrderInfo {
|
||||||
|
s.CreateTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeToolOrderAttrbuteCheckOrderInfo) SetFinishTime(v string) *AlibabaAlscUnionElemeToolOrderAttrbuteCheckOrderInfo {
|
||||||
|
s.FinishTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeToolOrderAttrbuteCheckOrderInfo) SetSettleDate(v string) *AlibabaAlscUnionElemeToolOrderAttrbuteCheckOrderInfo {
|
||||||
|
s.SettleDate = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionElemeToolOrderAttrbuteCheckUnionOrderAttributionInfo struct {
|
||||||
|
/*
|
||||||
|
订单基本信息 */
|
||||||
|
OrderInfo *AlibabaAlscUnionElemeToolOrderAttrbuteCheckOrderInfo `json:"order_info,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
归因结果数据 */
|
||||||
|
DetailInfos *[]AlibabaAlscUnionElemeToolOrderAttrbuteCheckAttributionDetailInfo `json:"detail_infos,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionElemeToolOrderAttrbuteCheckUnionOrderAttributionInfo) SetOrderInfo(v AlibabaAlscUnionElemeToolOrderAttrbuteCheckOrderInfo) *AlibabaAlscUnionElemeToolOrderAttrbuteCheckUnionOrderAttributionInfo {
|
||||||
|
s.OrderInfo = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionElemeToolOrderAttrbuteCheckUnionOrderAttributionInfo) SetDetailInfos(v []AlibabaAlscUnionElemeToolOrderAttrbuteCheckAttributionDetailInfo) *AlibabaAlscUnionElemeToolOrderAttrbuteCheckUnionOrderAttributionInfo {
|
||||||
|
s.DetailInfos = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemDetailGetBrand struct {
|
||||||
|
/*
|
||||||
|
品牌Id */
|
||||||
|
BrandId *string `json:"brand_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
品牌名 */
|
||||||
|
BrandName *string `json:"brand_name,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetBrand) SetBrandId(v string) *AlibabaAlscUnionKbItemDetailGetBrand {
|
||||||
|
s.BrandId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetBrand) SetBrandName(v string) *AlibabaAlscUnionKbItemDetailGetBrand {
|
||||||
|
s.BrandName = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,52 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemDetailGetContentDetail struct {
|
||||||
|
/*
|
||||||
|
名称 */
|
||||||
|
Name *string `json:"name,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
单价(元) */
|
||||||
|
Price *string `json:"price,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
数量 */
|
||||||
|
Quantity *int64 `json:"quantity,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
小计金额=数量*单价 */
|
||||||
|
SumPrice *string `json:"sum_price,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
单位 */
|
||||||
|
Unit *string `json:"unit,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
规格 */
|
||||||
|
Spec *string `json:"spec,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetContentDetail) SetName(v string) *AlibabaAlscUnionKbItemDetailGetContentDetail {
|
||||||
|
s.Name = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetContentDetail) SetPrice(v string) *AlibabaAlscUnionKbItemDetailGetContentDetail {
|
||||||
|
s.Price = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetContentDetail) SetQuantity(v int64) *AlibabaAlscUnionKbItemDetailGetContentDetail {
|
||||||
|
s.Quantity = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetContentDetail) SetSumPrice(v string) *AlibabaAlscUnionKbItemDetailGetContentDetail {
|
||||||
|
s.SumPrice = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetContentDetail) SetUnit(v string) *AlibabaAlscUnionKbItemDetailGetContentDetail {
|
||||||
|
s.Unit = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetContentDetail) SetSpec(v string) *AlibabaAlscUnionKbItemDetailGetContentDetail {
|
||||||
|
s.Spec = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemDetailGetImageContent struct {
|
||||||
|
/*
|
||||||
|
标题 */
|
||||||
|
Title *string `json:"title,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
描述 */
|
||||||
|
Desc *string `json:"desc,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
图片列表 */
|
||||||
|
Urls *[]string `json:"urls,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetImageContent) SetTitle(v string) *AlibabaAlscUnionKbItemDetailGetImageContent {
|
||||||
|
s.Title = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetImageContent) SetDesc(v string) *AlibabaAlscUnionKbItemDetailGetImageContent {
|
||||||
|
s.Desc = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetImageContent) SetUrls(v []string) *AlibabaAlscUnionKbItemDetailGetImageContent {
|
||||||
|
s.Urls = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemDetailGetImageDto struct {
|
||||||
|
/*
|
||||||
|
图片名 */
|
||||||
|
Name *string `json:"name,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
图片地址 */
|
||||||
|
Url *string `json:"url,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetImageDto) SetName(v string) *AlibabaAlscUnionKbItemDetailGetImageDto {
|
||||||
|
s.Name = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetImageDto) SetUrl(v string) *AlibabaAlscUnionKbItemDetailGetImageDto {
|
||||||
|
s.Url = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemDetailGetInteger struct {
|
||||||
|
/*
|
||||||
|
图片名 */
|
||||||
|
Name *string `json:"name,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
图片地址 */
|
||||||
|
Url *string `json:"url,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetInteger) SetName(v string) *AlibabaAlscUnionKbItemDetailGetInteger {
|
||||||
|
s.Name = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetInteger) SetUrl(v string) *AlibabaAlscUnionKbItemDetailGetInteger {
|
||||||
|
s.Url = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemDetailGetItemBuyNote struct {
|
||||||
|
/*
|
||||||
|
商家须知 */
|
||||||
|
ShopInfo *AlibabaAlscUnionKbItemDetailGetShopInfo `json:"shop_info,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
使用须知 */
|
||||||
|
UseNote *AlibabaAlscUnionKbItemDetailGetUseNote `json:"use_note,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
更多须知内容 */
|
||||||
|
ExtraNotes *[]AlibabaAlscUnionKbItemDetailGetTextContent `json:"extra_notes,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetItemBuyNote) SetShopInfo(v AlibabaAlscUnionKbItemDetailGetShopInfo) *AlibabaAlscUnionKbItemDetailGetItemBuyNote {
|
||||||
|
s.ShopInfo = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetItemBuyNote) SetUseNote(v AlibabaAlscUnionKbItemDetailGetUseNote) *AlibabaAlscUnionKbItemDetailGetItemBuyNote {
|
||||||
|
s.UseNote = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetItemBuyNote) SetExtraNotes(v []AlibabaAlscUnionKbItemDetailGetTextContent) *AlibabaAlscUnionKbItemDetailGetItemBuyNote {
|
||||||
|
s.ExtraNotes = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemDetailGetItemContent struct {
|
||||||
|
/*
|
||||||
|
商品内容详情组 */
|
||||||
|
ContentGroups *[]AlibabaAlscUnionKbItemDetailGetItemContentGroup `json:"content_groups,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
图文详情 */
|
||||||
|
ImageContents *[]AlibabaAlscUnionKbItemDetailGetImageContent `json:"image_contents,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品说明 */
|
||||||
|
TextContents *[]AlibabaAlscUnionKbItemDetailGetTextContent `json:"text_contents,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
补充说明 */
|
||||||
|
Remarks *[]string `json:"remarks,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商家公告 */
|
||||||
|
Announcement *string `json:"announcement,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetItemContent) SetContentGroups(v []AlibabaAlscUnionKbItemDetailGetItemContentGroup) *AlibabaAlscUnionKbItemDetailGetItemContent {
|
||||||
|
s.ContentGroups = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetItemContent) SetImageContents(v []AlibabaAlscUnionKbItemDetailGetImageContent) *AlibabaAlscUnionKbItemDetailGetItemContent {
|
||||||
|
s.ImageContents = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetItemContent) SetTextContents(v []AlibabaAlscUnionKbItemDetailGetTextContent) *AlibabaAlscUnionKbItemDetailGetItemContent {
|
||||||
|
s.TextContents = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetItemContent) SetRemarks(v []string) *AlibabaAlscUnionKbItemDetailGetItemContent {
|
||||||
|
s.Remarks = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetItemContent) SetAnnouncement(v string) *AlibabaAlscUnionKbItemDetailGetItemContent {
|
||||||
|
s.Announcement = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemDetailGetItemContentGroup struct {
|
||||||
|
/*
|
||||||
|
组标题 */
|
||||||
|
Title *string `json:"title,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
组内列表 */
|
||||||
|
ContentDetails *[]AlibabaAlscUnionKbItemDetailGetContentDetail `json:"content_details,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetItemContentGroup) SetTitle(v string) *AlibabaAlscUnionKbItemDetailGetItemContentGroup {
|
||||||
|
s.Title = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetItemContentGroup) SetContentDetails(v []AlibabaAlscUnionKbItemDetailGetContentDetail) *AlibabaAlscUnionKbItemDetailGetItemContentGroup {
|
||||||
|
s.ContentDetails = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemDetailGetItemDetail struct {
|
||||||
|
/*
|
||||||
|
内容详情 */
|
||||||
|
ItemContent *AlibabaAlscUnionKbItemDetailGetItemContent `json:"item_content,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
购买须知 */
|
||||||
|
ItemBuyNote *AlibabaAlscUnionKbItemDetailGetItemBuyNote `json:"item_buy_note,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
凭证 */
|
||||||
|
ItemTicket *AlibabaAlscUnionKbItemDetailGetItemTicket `json:"item_ticket,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetItemDetail) SetItemContent(v AlibabaAlscUnionKbItemDetailGetItemContent) *AlibabaAlscUnionKbItemDetailGetItemDetail {
|
||||||
|
s.ItemContent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetItemDetail) SetItemBuyNote(v AlibabaAlscUnionKbItemDetailGetItemBuyNote) *AlibabaAlscUnionKbItemDetailGetItemDetail {
|
||||||
|
s.ItemBuyNote = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetItemDetail) SetItemTicket(v AlibabaAlscUnionKbItemDetailGetItemTicket) *AlibabaAlscUnionKbItemDetailGetItemDetail {
|
||||||
|
s.ItemTicket = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemDetailGetItemTicket struct {
|
||||||
|
/*
|
||||||
|
有效期 */
|
||||||
|
TicketPeriod *AlibabaAlscUnionKbItemDetailGetTicketPeriod `json:"ticket_period,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
时间规则 */
|
||||||
|
TicketTimeRules *[]AlibabaAlscUnionKbItemDetailGetTicketTimeRule `json:"ticket_time_rules,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetItemTicket) SetTicketPeriod(v AlibabaAlscUnionKbItemDetailGetTicketPeriod) *AlibabaAlscUnionKbItemDetailGetItemTicket {
|
||||||
|
s.TicketPeriod = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetItemTicket) SetTicketTimeRules(v []AlibabaAlscUnionKbItemDetailGetTicketTimeRule) *AlibabaAlscUnionKbItemDetailGetItemTicket {
|
||||||
|
s.TicketTimeRules = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,220 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemDetailGetKbItemDetailDto struct {
|
||||||
|
/*
|
||||||
|
商品ID */
|
||||||
|
ItemId *string `json:"item_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
标题 */
|
||||||
|
Title *string `json:"title,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
副标题 */
|
||||||
|
SubTitle *string `json:"sub_title,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
主图 */
|
||||||
|
MainPicture *string `json:"main_picture,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
相册 */
|
||||||
|
Images *[]AlibabaAlscUnionKbItemDetailGetImageDto `json:"images,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
售卖起始时间(秒) */
|
||||||
|
SaleStartTime *int64 `json:"sale_start_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
售卖结束时间(秒) */
|
||||||
|
SaleEndTime *int64 `json:"sale_end_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
原价(分) */
|
||||||
|
OriginalPriceCent *int64 `json:"original_price_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
活动价(分) */
|
||||||
|
ActivityPriceCent *int64 `json:"activity_price_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
总销量 */
|
||||||
|
TotalSales *int64 `json:"total_sales,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
库存 */
|
||||||
|
Stock *int64 `json:"stock,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
适用门店数量(city_id不为空则返回当前城市可用门店数,否则返回全部可用门店数) */
|
||||||
|
ApplyShopCount *int64 `json:"apply_shop_count,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
折扣 */
|
||||||
|
Discount *string `json:"discount,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品详情 */
|
||||||
|
ItemDetail *AlibabaAlscUnionKbItemDetailGetItemDetail `json:"item_detail,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品子类型 */
|
||||||
|
ItemSubType *string `json:"item_sub_type,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
可核销次数 */
|
||||||
|
UseTimes *int64 `json:"use_times,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品可用城市 */
|
||||||
|
ApplyCityIds *[]int32 `json:"apply_city_ids,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
当前商品购买是否需要手机号 */
|
||||||
|
NeedPhone *bool `json:"need_phone,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
淘宝二级类目ID */
|
||||||
|
TbCategory2Id *string `json:"tb_category_2_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
淘宝二级类目名称 */
|
||||||
|
TbCategory2Name *string `json:"tb_category_2_name,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
淘宝三级类目ID */
|
||||||
|
TbCategory3Id *string `json:"tb_category_3_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
淘宝三级类目名称 */
|
||||||
|
TbCategory3Name *string `json:"tb_category_3_name,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
限购份数(-1表示不限购) */
|
||||||
|
BuyLimit *int64 `json:"buy_limit,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
门店商品相册 */
|
||||||
|
ShopItemImages *[]AlibabaAlscUnionKbItemDetailGetInteger `json:"shop_item_images,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
门店环境相册 */
|
||||||
|
ShopEnvironmentImages *[]AlibabaAlscUnionKbItemDetailGetImageDto `json:"shop_environment_images,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品可售卖的端类型。1支付宝端商品,2微信端商品,3全部 */
|
||||||
|
ItemType *int64 `json:"item_type,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
品牌 */
|
||||||
|
Brand *AlibabaAlscUnionKbItemDetailGetBrand `json:"brand,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetItemId(v string) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.ItemId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetTitle(v string) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.Title = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetSubTitle(v string) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.SubTitle = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetMainPicture(v string) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.MainPicture = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetImages(v []AlibabaAlscUnionKbItemDetailGetImageDto) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.Images = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetSaleStartTime(v int64) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.SaleStartTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetSaleEndTime(v int64) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.SaleEndTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetOriginalPriceCent(v int64) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.OriginalPriceCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetActivityPriceCent(v int64) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.ActivityPriceCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetTotalSales(v int64) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.TotalSales = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetStock(v int64) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.Stock = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetApplyShopCount(v int64) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.ApplyShopCount = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetDiscount(v string) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.Discount = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetItemDetail(v AlibabaAlscUnionKbItemDetailGetItemDetail) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.ItemDetail = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetItemSubType(v string) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.ItemSubType = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetUseTimes(v int64) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.UseTimes = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetApplyCityIds(v []int32) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.ApplyCityIds = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetNeedPhone(v bool) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.NeedPhone = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetTbCategory2Id(v string) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.TbCategory2Id = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetTbCategory2Name(v string) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.TbCategory2Name = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetTbCategory3Id(v string) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.TbCategory3Id = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetTbCategory3Name(v string) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.TbCategory3Name = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetBuyLimit(v int64) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.BuyLimit = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetShopItemImages(v []AlibabaAlscUnionKbItemDetailGetInteger) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.ShopItemImages = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetShopEnvironmentImages(v []AlibabaAlscUnionKbItemDetailGetImageDto) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.ShopEnvironmentImages = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetItemType(v int64) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.ItemType = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto) SetBrand(v AlibabaAlscUnionKbItemDetailGetBrand) *AlibabaAlscUnionKbItemDetailGetKbItemDetailDto {
|
||||||
|
s.Brand = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemDetailGetKbItemDetailRequest struct {
|
||||||
|
/*
|
||||||
|
商品ID */
|
||||||
|
ItemId *string `json:"item_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
城市ID */
|
||||||
|
CityId *string `json:"city_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
业务类型(cps/cpa) */
|
||||||
|
BizType *string `json:"biz_type,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailRequest) SetItemId(v string) *AlibabaAlscUnionKbItemDetailGetKbItemDetailRequest {
|
||||||
|
s.ItemId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailRequest) SetCityId(v string) *AlibabaAlscUnionKbItemDetailGetKbItemDetailRequest {
|
||||||
|
s.CityId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetKbItemDetailRequest) SetBizType(v string) *AlibabaAlscUnionKbItemDetailGetKbItemDetailRequest {
|
||||||
|
s.BizType = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,60 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemDetailGetShopInfo struct {
|
||||||
|
/*
|
||||||
|
免费wifi */
|
||||||
|
FreeWifi *bool `json:"free_wifi,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
免费停车 */
|
||||||
|
FreePark *bool `json:"free_park,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
免费停车小时数 */
|
||||||
|
FreeParkHours *int64 `json:"free_park_hours,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
停车收费金额 */
|
||||||
|
ParkFeePerHour *string `json:"park_fee_per_hour,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
每段时间的封顶金额 例如 24小时封顶xx元 */
|
||||||
|
ParkFeeUpperBoundPerDay *string `json:"park_fee_upper_bound_per_day,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
提供发票 */
|
||||||
|
SupplyInvoice *bool `json:"supply_invoice,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
发票类型:电子发票或纸质发票 */
|
||||||
|
InvoiceTypes *[]string `json:"invoice_types,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetShopInfo) SetFreeWifi(v bool) *AlibabaAlscUnionKbItemDetailGetShopInfo {
|
||||||
|
s.FreeWifi = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetShopInfo) SetFreePark(v bool) *AlibabaAlscUnionKbItemDetailGetShopInfo {
|
||||||
|
s.FreePark = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetShopInfo) SetFreeParkHours(v int64) *AlibabaAlscUnionKbItemDetailGetShopInfo {
|
||||||
|
s.FreeParkHours = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetShopInfo) SetParkFeePerHour(v string) *AlibabaAlscUnionKbItemDetailGetShopInfo {
|
||||||
|
s.ParkFeePerHour = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetShopInfo) SetParkFeeUpperBoundPerDay(v string) *AlibabaAlscUnionKbItemDetailGetShopInfo {
|
||||||
|
s.ParkFeeUpperBoundPerDay = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetShopInfo) SetSupplyInvoice(v bool) *AlibabaAlscUnionKbItemDetailGetShopInfo {
|
||||||
|
s.SupplyInvoice = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetShopInfo) SetInvoiceTypes(v []string) *AlibabaAlscUnionKbItemDetailGetShopInfo {
|
||||||
|
s.InvoiceTypes = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,28 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemDetailGetTextContent struct {
|
||||||
|
/*
|
||||||
|
标题 */
|
||||||
|
Title *string `json:"title,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
描述 */
|
||||||
|
Desc *string `json:"desc,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
内容 */
|
||||||
|
Contents *[]string `json:"contents,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetTextContent) SetTitle(v string) *AlibabaAlscUnionKbItemDetailGetTextContent {
|
||||||
|
s.Title = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetTextContent) SetDesc(v string) *AlibabaAlscUnionKbItemDetailGetTextContent {
|
||||||
|
s.Desc = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetTextContent) SetContents(v []string) *AlibabaAlscUnionKbItemDetailGetTextContent {
|
||||||
|
s.Contents = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemDetailGetTicketPeriod struct {
|
||||||
|
/*
|
||||||
|
有效周期类型 */
|
||||||
|
PeriodType *string `json:"period_type,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
相对有效期,单位:天 */
|
||||||
|
Period *int64 `json:"period,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
是否自然日 */
|
||||||
|
NatureDay *bool `json:"nature_day,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
起始时间(秒) */
|
||||||
|
StartTime *int64 `json:"start_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
终止时间(秒) */
|
||||||
|
EndTime *int64 `json:"end_time,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetTicketPeriod) SetPeriodType(v string) *AlibabaAlscUnionKbItemDetailGetTicketPeriod {
|
||||||
|
s.PeriodType = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetTicketPeriod) SetPeriod(v int64) *AlibabaAlscUnionKbItemDetailGetTicketPeriod {
|
||||||
|
s.Period = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetTicketPeriod) SetNatureDay(v bool) *AlibabaAlscUnionKbItemDetailGetTicketPeriod {
|
||||||
|
s.NatureDay = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetTicketPeriod) SetStartTime(v int64) *AlibabaAlscUnionKbItemDetailGetTicketPeriod {
|
||||||
|
s.StartTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetTicketPeriod) SetEndTime(v int64) *AlibabaAlscUnionKbItemDetailGetTicketPeriod {
|
||||||
|
s.EndTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,36 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemDetailGetTicketTimeRule struct {
|
||||||
|
/*
|
||||||
|
时间规则生效模式("IN":"包含","EX":"排除) */
|
||||||
|
RuleApplyMode *string `json:"rule_apply_mode,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
时分维度的规则(10:00~12:00) */
|
||||||
|
HourMinRules *[]string `json:"hour_min_rules,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
星期维度的规则(周一到周日分别是:1~7) */
|
||||||
|
WeekRules *[]string `json:"week_rules,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
日维度的规则:某天到某天 */
|
||||||
|
DateRules *[]string `json:"date_rules,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetTicketTimeRule) SetRuleApplyMode(v string) *AlibabaAlscUnionKbItemDetailGetTicketTimeRule {
|
||||||
|
s.RuleApplyMode = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetTicketTimeRule) SetHourMinRules(v []string) *AlibabaAlscUnionKbItemDetailGetTicketTimeRule {
|
||||||
|
s.HourMinRules = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetTicketTimeRule) SetWeekRules(v []string) *AlibabaAlscUnionKbItemDetailGetTicketTimeRule {
|
||||||
|
s.WeekRules = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetTicketTimeRule) SetDateRules(v []string) *AlibabaAlscUnionKbItemDetailGetTicketTimeRule {
|
||||||
|
s.DateRules = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,36 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemDetailGetUseNote struct {
|
||||||
|
/*
|
||||||
|
需要预约 */
|
||||||
|
NeedReserve *bool `json:"need_reserve,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
预约说明 */
|
||||||
|
ReserveDesc *string `json:"reserve_desc,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
是否限制使用用户数 */
|
||||||
|
LimitUserNum *bool `json:"limit_user_num,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
限制多少人使用 */
|
||||||
|
UserNumLimited *int64 `json:"user_num_limited,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetUseNote) SetNeedReserve(v bool) *AlibabaAlscUnionKbItemDetailGetUseNote {
|
||||||
|
s.NeedReserve = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetUseNote) SetReserveDesc(v string) *AlibabaAlscUnionKbItemDetailGetUseNote {
|
||||||
|
s.ReserveDesc = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetUseNote) SetLimitUserNum(v bool) *AlibabaAlscUnionKbItemDetailGetUseNote {
|
||||||
|
s.LimitUserNum = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemDetailGetUseNote) SetUserNumLimited(v int64) *AlibabaAlscUnionKbItemDetailGetUseNote {
|
||||||
|
s.UserNumLimited = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,20 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemPromotionFilterListFilterTableNameDTO struct {
|
||||||
|
/*
|
||||||
|
筛选项key值 */
|
||||||
|
FilterKey *string `json:"filter_key,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
筛选项展示名称 */
|
||||||
|
FilterName *string `json:"filter_name,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionFilterListFilterTableNameDTO) SetFilterKey(v string) *AlibabaAlscUnionKbItemPromotionFilterListFilterTableNameDTO {
|
||||||
|
s.FilterKey = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionFilterListFilterTableNameDTO) SetFilterName(v string) *AlibabaAlscUnionKbItemPromotionFilterListFilterTableNameDTO {
|
||||||
|
s.FilterName = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,148 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO struct {
|
||||||
|
/*
|
||||||
|
商品可售卖截止时间,时间戳(秒) */
|
||||||
|
ItemSaleEndTime *int64 `json:"item_sale_end_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
原始价格,单位元 */
|
||||||
|
OriginalPrice *string `json:"original_price,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
口碑微信小程序appId */
|
||||||
|
WxAppId *string `json:"wx_app_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
折扣 */
|
||||||
|
Discount *string `json:"discount,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品标题 */
|
||||||
|
Title *string `json:"title,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
月销量 */
|
||||||
|
ThirtySoldQuantity *int64 `json:"thirty_sold_quantity,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品id */
|
||||||
|
ItemId *int64 `json:"item_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
售卖价格,折扣后价格 */
|
||||||
|
Price *string `json:"price,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品图片 */
|
||||||
|
ImageUrl *string `json:"image_url,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
点击商品后,微信小程序的承接页 */
|
||||||
|
WxPath *string `json:"wx_path,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
预估佣金,单位元 */
|
||||||
|
Commission *string `json:"commission,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品可适用门店数量 */
|
||||||
|
ApplyShopNum *int64 `json:"apply_shop_num,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
库存 */
|
||||||
|
Stock *int64 `json:"stock,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品可售卖开始时间,单位元 */
|
||||||
|
ItemSaleStartTime *int64 `json:"item_sale_start_time,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
可使用城市列表 */
|
||||||
|
ValidCities *[]string `json:"valid_cities,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
核销后奖励佣金,单位元;cpa业务类型返回 */
|
||||||
|
BonusCommission *string `json:"bonus_commission,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
总销量 */
|
||||||
|
TotalSales *int64 `json:"total_sales,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品可售卖的端类型。1支付宝端商品,2微信端商品,3全部 */
|
||||||
|
ItemType *int64 `json:"item_type,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO) SetItemSaleEndTime(v int64) *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO {
|
||||||
|
s.ItemSaleEndTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO) SetOriginalPrice(v string) *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO {
|
||||||
|
s.OriginalPrice = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO) SetWxAppId(v string) *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO {
|
||||||
|
s.WxAppId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO) SetDiscount(v string) *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO {
|
||||||
|
s.Discount = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO) SetTitle(v string) *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO {
|
||||||
|
s.Title = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO) SetThirtySoldQuantity(v int64) *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO {
|
||||||
|
s.ThirtySoldQuantity = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO) SetItemId(v int64) *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO {
|
||||||
|
s.ItemId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO) SetPrice(v string) *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO {
|
||||||
|
s.Price = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO) SetImageUrl(v string) *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO {
|
||||||
|
s.ImageUrl = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO) SetWxPath(v string) *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO {
|
||||||
|
s.WxPath = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO) SetCommission(v string) *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO {
|
||||||
|
s.Commission = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO) SetApplyShopNum(v int64) *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO {
|
||||||
|
s.ApplyShopNum = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO) SetStock(v int64) *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO {
|
||||||
|
s.Stock = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO) SetItemSaleStartTime(v int64) *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO {
|
||||||
|
s.ItemSaleStartTime = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO) SetValidCities(v []string) *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO {
|
||||||
|
s.ValidCities = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO) SetBonusCommission(v string) *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO {
|
||||||
|
s.BonusCommission = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO) SetTotalSales(v int64) *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO {
|
||||||
|
s.TotalSales = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO) SetItemType(v int64) *AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO {
|
||||||
|
s.ItemType = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,84 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO struct {
|
||||||
|
/*
|
||||||
|
微信推广图片下载链接 */
|
||||||
|
ImgUrl *string `json:"img_url,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
微信小程序的appid */
|
||||||
|
WxAppid *string `json:"wx_appid,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
微信小程序的路径 */
|
||||||
|
WxPath *string `json:"wx_path,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
微信小程序码 */
|
||||||
|
MiniQrCode *string `json:"mini_qr_code,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
支付宝推广图片地址 */
|
||||||
|
AlipayImgUrl *string `json:"alipay_img_url,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
支付宝吱口令 */
|
||||||
|
AlipayWatchword *string `json:"alipay_watchword,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
支付宝吱口令的引导文案 */
|
||||||
|
AlipayWatchwordSuggest *string `json:"alipay_watchword_suggest,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
支付宝小程序码 */
|
||||||
|
AlipayMiniQrCode *string `json:"alipay_mini_qr_code,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
支付宝小程序path */
|
||||||
|
AlipaySchemeUrl *string `json:"alipay_scheme_url,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
支付宝的h5链接 */
|
||||||
|
H5Url *string `json:"h5_url,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO) SetImgUrl(v string) *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO {
|
||||||
|
s.ImgUrl = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO) SetWxAppid(v string) *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO {
|
||||||
|
s.WxAppid = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO) SetWxPath(v string) *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO {
|
||||||
|
s.WxPath = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO) SetMiniQrCode(v string) *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO {
|
||||||
|
s.MiniQrCode = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO) SetAlipayImgUrl(v string) *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO {
|
||||||
|
s.AlipayImgUrl = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO) SetAlipayWatchword(v string) *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO {
|
||||||
|
s.AlipayWatchword = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO) SetAlipayWatchwordSuggest(v string) *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO {
|
||||||
|
s.AlipayWatchwordSuggest = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO) SetAlipayMiniQrCode(v string) *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO {
|
||||||
|
s.AlipayMiniQrCode = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO) SetAlipaySchemeUrl(v string) *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO {
|
||||||
|
s.AlipaySchemeUrl = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO) SetH5Url(v string) *AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO {
|
||||||
|
s.H5Url = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,84 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemQueryKbItemPromotionDTO struct {
|
||||||
|
/*
|
||||||
|
商品ID */
|
||||||
|
ItemId *string `json:"item_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
标题 */
|
||||||
|
Title *string `json:"title,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
商品图 */
|
||||||
|
MainPicture *string `json:"main_picture,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
原价(分) */
|
||||||
|
OriginalPriceCent *int64 `json:"original_price_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
活动价(分) */
|
||||||
|
ActivityPriceCent *int64 `json:"activity_price_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
券后价(分) */
|
||||||
|
PriceWithCouponCent *int64 `json:"price_with_coupon_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
券价格(分) */
|
||||||
|
CouponPriceCent *int64 `json:"coupon_price_cent,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
九十天销量 */
|
||||||
|
NinetySales *int64 `json:"ninety_sales,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
总销量 */
|
||||||
|
TotalSales *int64 `json:"total_sales,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
推广链接 */
|
||||||
|
Link *AlibabaAlscUnionKbItemQueryPromotionLink `json:"link,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetItemId(v string) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO {
|
||||||
|
s.ItemId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetTitle(v string) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO {
|
||||||
|
s.Title = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetMainPicture(v string) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO {
|
||||||
|
s.MainPicture = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetOriginalPriceCent(v int64) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO {
|
||||||
|
s.OriginalPriceCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetActivityPriceCent(v int64) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO {
|
||||||
|
s.ActivityPriceCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetPriceWithCouponCent(v int64) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO {
|
||||||
|
s.PriceWithCouponCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetCouponPriceCent(v int64) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO {
|
||||||
|
s.CouponPriceCent = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetNinetySales(v int64) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO {
|
||||||
|
s.NinetySales = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetTotalSales(v int64) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO {
|
||||||
|
s.TotalSales = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetLink(v AlibabaAlscUnionKbItemQueryPromotionLink) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO {
|
||||||
|
s.Link = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
@ -0,0 +1,44 @@
|
|||||||
|
package domain
|
||||||
|
|
||||||
|
type AlibabaAlscUnionKbItemQueryPageModel struct {
|
||||||
|
/*
|
||||||
|
会话ID(下次请求作为请求参数,用于标记分页会话自动翻页) */
|
||||||
|
SessionId *string `json:"session_id,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
页码 */
|
||||||
|
PageNumber *int64 `json:"page_number,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
每页数目 */
|
||||||
|
PageSize *int64 `json:"page_size,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
总数 */
|
||||||
|
Total *int64 `json:"total,omitempty" `
|
||||||
|
|
||||||
|
/*
|
||||||
|
分页记录 */
|
||||||
|
Records *[]AlibabaAlscUnionKbItemQueryKbItemPromotionDTO `json:"records,omitempty" `
|
||||||
|
}
|
||||||
|
|
||||||
|
func (s *AlibabaAlscUnionKbItemQueryPageModel) SetSessionId(v string) *AlibabaAlscUnionKbItemQueryPageModel {
|
||||||
|
s.SessionId = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemQueryPageModel) SetPageNumber(v int64) *AlibabaAlscUnionKbItemQueryPageModel {
|
||||||
|
s.PageNumber = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemQueryPageModel) SetPageSize(v int64) *AlibabaAlscUnionKbItemQueryPageModel {
|
||||||
|
s.PageSize = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemQueryPageModel) SetTotal(v int64) *AlibabaAlscUnionKbItemQueryPageModel {
|
||||||
|
s.Total = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
|
func (s *AlibabaAlscUnionKbItemQueryPageModel) SetRecords(v []AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) *AlibabaAlscUnionKbItemQueryPageModel {
|
||||||
|
s.Records = &v
|
||||||
|
return s
|
||||||
|
}
|
||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user