2024-05-04 16:57:40 +08:00
|
|
|
|
package defaultability
|
|
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
|
"errors"
|
|
|
|
|
|
"log"
|
2025-06-10 12:34:43 +08:00
|
|
|
|
"repository.lenntc.com/lenntc/third-platform-sdk/sdk/topsdk"
|
2024-07-29 23:52:23 +08:00
|
|
|
|
"repository.lenntc.com/lenntc/third-platform-sdk/sdk/topsdk/defaultability/request"
|
|
|
|
|
|
"repository.lenntc.com/lenntc/third-platform-sdk/sdk/topsdk/defaultability/response"
|
|
|
|
|
|
"repository.lenntc.com/lenntc/third-platform-sdk/sdk/topsdk/util"
|
2024-05-04 16:57:40 +08:00
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2025-06-10 12:34:43 +08:00
|
|
|
|
本地联盟商品编辑(未开放)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
*/
|
2025-06-10 12:34:43 +08:00
|
|
|
|
func (ability *Defaultability) AlibabaAlscUnionSupplyOuterItemEdit(req *request.AlibabaAlscUnionSupplyOuterItemEditRequest) (*response.AlibabaAlscUnionSupplyOuterItemEditResponse, error) {
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if ability.Client == nil {
|
|
|
|
|
|
return nil, errors.New("Defaultability topClient is nil")
|
|
|
|
|
|
}
|
2025-06-10 12:34:43 +08:00
|
|
|
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.supply.outer.item.edit", req.ToMap(), req.ToFileMap())
|
|
|
|
|
|
var respStruct = response.AlibabaAlscUnionSupplyOuterItemEditResponse{}
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if err != nil {
|
2025-06-10 12:34:43 +08:00
|
|
|
|
log.Println("alibabaAlscUnionSupplyOuterItemEdit error", err)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
|
|
|
|
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
|
|
|
|
|
respStruct.Body = jsonStr
|
|
|
|
|
|
}
|
|
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2025-06-10 12:34:43 +08:00
|
|
|
|
本地联盟商品状态修改(未开放)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
*/
|
2025-06-10 12:34:43 +08:00
|
|
|
|
func (ability *Defaultability) AlibabaAlscUnionSupplyOuterItemStateUpdate(req *request.AlibabaAlscUnionSupplyOuterItemStateUpdateRequest) (*response.AlibabaAlscUnionSupplyOuterItemStateUpdateResponse, error) {
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if ability.Client == nil {
|
|
|
|
|
|
return nil, errors.New("Defaultability topClient is nil")
|
|
|
|
|
|
}
|
2025-06-10 12:34:43 +08:00
|
|
|
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.supply.outer.item.state.update", req.ToMap(), req.ToFileMap())
|
|
|
|
|
|
var respStruct = response.AlibabaAlscUnionSupplyOuterItemStateUpdateResponse{}
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if err != nil {
|
2025-06-10 12:34:43 +08:00
|
|
|
|
log.Println("alibabaAlscUnionSupplyOuterItemStateUpdate error", err)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
|
|
|
|
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
|
|
|
|
|
respStruct.Body = jsonStr
|
|
|
|
|
|
}
|
|
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2025-06-10 12:34:43 +08:00
|
|
|
|
本地生活媒体推广口碑CPA用户反作弊订单数据报表
|
2024-05-04 16:57:40 +08:00
|
|
|
|
*/
|
2025-06-10 12:34:43 +08:00
|
|
|
|
func (ability *Defaultability) AlibabaAlscUnionKbcpaPunishOrderGet(req *request.AlibabaAlscUnionKbcpaPunishOrderGetRequest) (*response.AlibabaAlscUnionKbcpaPunishOrderGetResponse, error) {
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if ability.Client == nil {
|
|
|
|
|
|
return nil, errors.New("Defaultability topClient is nil")
|
|
|
|
|
|
}
|
2025-06-10 12:34:43 +08:00
|
|
|
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kbcpa.punish.order.get", req.ToMap(), req.ToFileMap())
|
|
|
|
|
|
var respStruct = response.AlibabaAlscUnionKbcpaPunishOrderGetResponse{}
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if err != nil {
|
2025-06-10 12:34:43 +08:00
|
|
|
|
log.Println("alibabaAlscUnionKbcpaPunishOrderGet error", err)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
|
|
|
|
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
|
|
|
|
|
respStruct.Body = jsonStr
|
|
|
|
|
|
}
|
|
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2025-06-10 12:34:43 +08:00
|
|
|
|
本地联盟媒体出资活动红包发放(已废弃,不再开放对接)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
*/
|
2025-06-10 12:34:43 +08:00
|
|
|
|
func (ability *Defaultability) AlibabaAlscUnionElemeMediaActivityCouponSend(req *request.AlibabaAlscUnionElemeMediaActivityCouponSendRequest) (*response.AlibabaAlscUnionElemeMediaActivityCouponSendResponse, error) {
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if ability.Client == nil {
|
|
|
|
|
|
return nil, errors.New("Defaultability topClient is nil")
|
|
|
|
|
|
}
|
2025-06-10 12:34:43 +08:00
|
|
|
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.eleme.media.activity.coupon.send", req.ToMap(), req.ToFileMap())
|
|
|
|
|
|
var respStruct = response.AlibabaAlscUnionElemeMediaActivityCouponSendResponse{}
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if err != nil {
|
2025-06-10 12:34:43 +08:00
|
|
|
|
log.Println("alibabaAlscUnionElemeMediaActivityCouponSend error", err)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
|
|
|
|
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
|
|
|
|
|
respStruct.Body = jsonStr
|
|
|
|
|
|
}
|
|
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2025-06-10 12:34:43 +08:00
|
|
|
|
本地联盟商品发布(未开放)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
*/
|
2025-06-10 12:34:43 +08:00
|
|
|
|
func (ability *Defaultability) AlibabaAlscUnionSupplyOuterItemPublish(req *request.AlibabaAlscUnionSupplyOuterItemPublishRequest) (*response.AlibabaAlscUnionSupplyOuterItemPublishResponse, error) {
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if ability.Client == nil {
|
|
|
|
|
|
return nil, errors.New("Defaultability topClient is nil")
|
|
|
|
|
|
}
|
2025-06-10 12:34:43 +08:00
|
|
|
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.supply.outer.item.publish", req.ToMap(), req.ToFileMap())
|
|
|
|
|
|
var respStruct = response.AlibabaAlscUnionSupplyOuterItemPublishResponse{}
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if err != nil {
|
2025-06-10 12:34:43 +08:00
|
|
|
|
log.Println("alibabaAlscUnionSupplyOuterItemPublish error", err)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
|
|
|
|
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
|
|
|
|
|
respStruct.Body = jsonStr
|
|
|
|
|
|
}
|
|
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2025-06-10 12:34:43 +08:00
|
|
|
|
获取商家所在分组及其已授权(广播)消息topics
|
2024-05-04 16:57:40 +08:00
|
|
|
|
*/
|
2025-06-10 12:34:43 +08:00
|
|
|
|
func (ability *Defaultability) TaobaoTmcUserGet(req *request.TaobaoTmcUserGetRequest) (*response.TaobaoTmcUserGetResponse, error) {
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if ability.Client == nil {
|
|
|
|
|
|
return nil, errors.New("Defaultability topClient is nil")
|
|
|
|
|
|
}
|
2025-06-10 12:34:43 +08:00
|
|
|
|
var jsonStr, err = ability.Client.Execute("taobao.tmc.user.get", req.ToMap(), req.ToFileMap())
|
|
|
|
|
|
var respStruct = response.TaobaoTmcUserGetResponse{}
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if err != nil {
|
2025-06-10 12:34:43 +08:00
|
|
|
|
log.Println("taobaoTmcUserGet error", err)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
|
|
|
|
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
|
|
|
|
|
respStruct.Body = jsonStr
|
|
|
|
|
|
}
|
|
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2025-06-10 12:34:43 +08:00
|
|
|
|
本地联盟饿了么推广其他推广链接获取,抖音等
|
2024-05-04 16:57:40 +08:00
|
|
|
|
*/
|
2025-06-10 12:34:43 +08:00
|
|
|
|
func (ability *Defaultability) AlibabaAlscUnionElemePromotionOtherchannelGet(req *request.AlibabaAlscUnionElemePromotionOtherchannelGetRequest) (*response.AlibabaAlscUnionElemePromotionOtherchannelGetResponse, error) {
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if ability.Client == nil {
|
|
|
|
|
|
return nil, errors.New("Defaultability topClient is nil")
|
|
|
|
|
|
}
|
2025-06-10 12:34:43 +08:00
|
|
|
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.eleme.promotion.otherchannel.get", req.ToMap(), req.ToFileMap())
|
|
|
|
|
|
var respStruct = response.AlibabaAlscUnionElemePromotionOtherchannelGetResponse{}
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if err != nil {
|
2025-06-10 12:34:43 +08:00
|
|
|
|
log.Println("alibabaAlscUnionElemePromotionOtherchannelGet error", err)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
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
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2025-06-10 12:34:43 +08:00
|
|
|
|
本地联盟饿了么单店推广批量店铺查询
|
2024-05-04 16:57:40 +08:00
|
|
|
|
*/
|
2025-06-10 12:34:43 +08:00
|
|
|
|
func (ability *Defaultability) AlibabaAlscUnionElemePromotionStorepromotionBatchGet(req *request.AlibabaAlscUnionElemePromotionStorepromotionBatchGetRequest) (*response.AlibabaAlscUnionElemePromotionStorepromotionBatchGetResponse, error) {
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if ability.Client == nil {
|
|
|
|
|
|
return nil, errors.New("Defaultability topClient is nil")
|
|
|
|
|
|
}
|
2025-06-10 12:34:43 +08:00
|
|
|
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.eleme.promotion.storepromotion.batch.get", req.ToMap(), req.ToFileMap())
|
|
|
|
|
|
var respStruct = response.AlibabaAlscUnionElemePromotionStorepromotionBatchGetResponse{}
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if err != nil {
|
2025-06-10 12:34:43 +08:00
|
|
|
|
log.Println("alibabaAlscUnionElemePromotionStorepromotionBatchGet error", err)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
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) 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
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2025-06-10 12:34:43 +08:00
|
|
|
|
本地联盟商品获取分享链接(未开放)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
*/
|
2025-06-10 12:34:43 +08:00
|
|
|
|
func (ability *Defaultability) AlibabaAlscUnionSupplyOuterItemShare(req *request.AlibabaAlscUnionSupplyOuterItemShareRequest) (*response.AlibabaAlscUnionSupplyOuterItemShareResponse, error) {
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if ability.Client == nil {
|
|
|
|
|
|
return nil, errors.New("Defaultability topClient is nil")
|
|
|
|
|
|
}
|
2025-06-10 12:34:43 +08:00
|
|
|
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.supply.outer.item.share", req.ToMap(), req.ToFileMap())
|
|
|
|
|
|
var respStruct = response.AlibabaAlscUnionSupplyOuterItemShareResponse{}
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if err != nil {
|
2025-06-10 12:34:43 +08:00
|
|
|
|
log.Println("alibabaAlscUnionSupplyOuterItemShare error", err)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
|
|
|
|
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
|
|
|
|
|
respStruct.Body = jsonStr
|
|
|
|
|
|
}
|
|
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2025-06-10 12:34:43 +08:00
|
|
|
|
本地联盟饿了么单品推广详情(餐饮)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
*/
|
|
|
|
|
|
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
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2025-06-10 12:34:43 +08:00
|
|
|
|
本地联盟饿了么单品推广列表(餐饮)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
*/
|
|
|
|
|
|
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
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2025-06-10 12:34:43 +08:00
|
|
|
|
本地生活媒体推广订单明细查询
|
2024-05-04 16:57:40 +08:00
|
|
|
|
*/
|
2025-06-10 12:34:43 +08:00
|
|
|
|
func (ability *Defaultability) AlibabaAlscUnionKbcpaOrderDetailsGet(req *request.AlibabaAlscUnionKbcpaOrderDetailsGetRequest) (*response.AlibabaAlscUnionKbcpaOrderDetailsGetResponse, error) {
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if ability.Client == nil {
|
|
|
|
|
|
return nil, errors.New("Defaultability topClient is nil")
|
|
|
|
|
|
}
|
2025-06-10 12:34:43 +08:00
|
|
|
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kbcpa.order.details.get", req.ToMap(), req.ToFileMap())
|
|
|
|
|
|
var respStruct = response.AlibabaAlscUnionKbcpaOrderDetailsGetResponse{}
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if err != nil {
|
2025-06-10 12:34:43 +08:00
|
|
|
|
log.Println("alibabaAlscUnionKbcpaOrderDetailsGet error", err)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
|
|
|
|
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
|
|
|
|
|
respStruct.Body = jsonStr
|
|
|
|
|
|
}
|
|
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
2025-06-10 12:34:43 +08:00
|
|
|
|
本地联盟饿了么单品推广详情(零售)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
*/
|
2025-06-10 12:34:43 +08:00
|
|
|
|
func (ability *Defaultability) AlibabaAlscUnionElemePromotionRetailItempromotionGet(req *request.AlibabaAlscUnionElemePromotionRetailItempromotionGetRequest) (*response.AlibabaAlscUnionElemePromotionRetailItempromotionGetResponse, error) {
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if ability.Client == nil {
|
|
|
|
|
|
return nil, errors.New("Defaultability topClient is nil")
|
|
|
|
|
|
}
|
2025-06-10 12:34:43 +08:00
|
|
|
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.eleme.promotion.retail.itempromotion.get", req.ToMap(), req.ToFileMap())
|
|
|
|
|
|
var respStruct = response.AlibabaAlscUnionElemePromotionRetailItempromotionGetResponse{}
|
2024-05-04 16:57:40 +08:00
|
|
|
|
if err != nil {
|
2025-06-10 12:34:43 +08:00
|
|
|
|
log.Println("alibabaAlscUnionElemePromotionRetailItempromotionGet error", err)
|
2024-05-04 16:57:40 +08:00
|
|
|
|
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
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2025-06-10 12:34:43 +08:00
|
|
|
|
/*
|
|
|
|
|
|
本地联盟饿了么单品推广列表(零售)
|
|
|
|
|
|
*/
|
|
|
|
|
|
func (ability *Defaultability) AlibabaAlscUnionElemePromotionRetailItempromotionQuery(req *request.AlibabaAlscUnionElemePromotionRetailItempromotionQueryRequest) (*response.AlibabaAlscUnionElemePromotionRetailItempromotionQueryResponse, error) {
|
|
|
|
|
|
if ability.Client == nil {
|
|
|
|
|
|
return nil, errors.New("Defaultability topClient is nil")
|
|
|
|
|
|
}
|
|
|
|
|
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.eleme.promotion.retail.itempromotion.query", req.ToMap(), req.ToFileMap())
|
|
|
|
|
|
var respStruct = response.AlibabaAlscUnionElemePromotionRetailItempromotionQueryResponse{}
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
log.Println("alibabaAlscUnionElemePromotionRetailItempromotionQuery error", err)
|
|
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
|
|
|
|
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
|
|
|
|
|
respStruct.Body = jsonStr
|
|
|
|
|
|
}
|
|
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2024-05-04 16:57:40 +08:00
|
|
|
|
/*
|
|
|
|
|
|
本地生活媒体推广用户维权订单数据报表
|
|
|
|
|
|
*/
|
|
|
|
|
|
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
|
|
|
|
|
|
}
|
2025-06-10 12:34:43 +08:00
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
本地联盟主站口令实时数据查询接口(未开放)
|
|
|
|
|
|
*/
|
|
|
|
|
|
func (ability *Defaultability) AlibabaAlscUnionElemeWordDataGet(req *request.AlibabaAlscUnionElemeWordDataGetRequest) (*response.AlibabaAlscUnionElemeWordDataGetResponse, error) {
|
|
|
|
|
|
if ability.Client == nil {
|
|
|
|
|
|
return nil, errors.New("Defaultability topClient is nil")
|
|
|
|
|
|
}
|
|
|
|
|
|
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.eleme.word.data.get", req.ToMap(), req.ToFileMap())
|
|
|
|
|
|
var respStruct = response.AlibabaAlscUnionElemeWordDataGetResponse{}
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
log.Println("alibabaAlscUnionElemeWordDataGet 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
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
发布单条消息
|
|
|
|
|
|
*/
|
|
|
|
|
|
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
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
本地生活媒体创建商品推广链接(废弃勿用)
|
|
|
|
|
|
*/
|
|
|
|
|
|
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) 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) AlibabaAlscUnionElemePromotionOfficialactivityWxscheme(req *request.AlibabaAlscUnionElemePromotionOfficialactivityWxschemeRequest) (*response.AlibabaAlscUnionElemePromotionOfficialactivityWxschemeResponse, 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.wxscheme", req.ToMap(), req.ToFileMap())
|
|
|
|
|
|
var respStruct = response.AlibabaAlscUnionElemePromotionOfficialactivityWxschemeResponse{}
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
log.Println("alibabaAlscUnionElemePromotionOfficialactivityWxscheme 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) AlibabaAlscUnionElemeStorepromotionReviewbwcDiagnose(req *request.AlibabaAlscUnionElemeStorepromotionReviewbwcDiagnoseRequest) (*response.AlibabaAlscUnionElemeStorepromotionReviewbwcDiagnoseResponse, 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.diagnose", req.ToMap(), req.ToFileMap())
|
|
|
|
|
|
var respStruct = response.AlibabaAlscUnionElemeStorepromotionReviewbwcDiagnoseResponse{}
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
log.Println("alibabaAlscUnionElemeStorepromotionReviewbwcDiagnose 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) AlibabaAlscUnionElemeStorepromotionReviewbwcBindLinkGet(req *request.AlibabaAlscUnionElemeStorepromotionReviewbwcBindLinkGetRequest) (*response.AlibabaAlscUnionElemeStorepromotionReviewbwcBindLinkGetResponse, 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.bind.link.get", req.ToMap(), req.ToFileMap())
|
|
|
|
|
|
var respStruct = response.AlibabaAlscUnionElemeStorepromotionReviewbwcBindLinkGetResponse{}
|
|
|
|
|
|
if err != nil {
|
|
|
|
|
|
log.Println("alibabaAlscUnionElemeStorepromotionReviewbwcBindLinkGet error", err)
|
|
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|
|
|
|
|
|
err = util.HandleJsonResponse(jsonStr, &respStruct)
|
|
|
|
|
|
if respStruct.Body == "" || len(respStruct.Body) == 0 {
|
|
|
|
|
|
respStruct.Body = jsonStr
|
|
|
|
|
|
}
|
|
|
|
|
|
return &respStruct, err
|
|
|
|
|
|
}
|