Explorar el Código

更新

master
huangjiajun hace 1 año
padre
commit
3bfcd98f4d
Se han modificado 100 ficheros con 5405 adiciones y 0 borrados
  1. +91
    -0
      taobao/elm.go
  2. +30
    -0
      taobao/elm_test.go
  3. +198
    -0
      taobao/topsdk/ability132/Ability132.go
  4. +12
    -0
      taobao/topsdk/ability132/domain/TaobaoTmcGroupsGetTmcGroup.go
  5. +64
    -0
      taobao/topsdk/ability132/domain/TaobaoTmcMessagesConsumeTmcMessage.go
  6. +28
    -0
      taobao/topsdk/ability132/domain/TaobaoTmcMessagesProduceTmcProduceResult.go
  7. +44
    -0
      taobao/topsdk/ability132/domain/TaobaoTmcMessagesProduceTmcPublishMessage.go
  8. +25
    -0
      taobao/topsdk/ability132/request/TaobaoTmcAuthGetRequest.go
  9. +49
    -0
      taobao/topsdk/ability132/request/TaobaoTmcGroupAddRequest.go
  10. +49
    -0
      taobao/topsdk/ability132/request/TaobaoTmcGroupDeleteRequest.go
  11. +47
    -0
      taobao/topsdk/ability132/request/TaobaoTmcGroupsGetRequest.go
  12. +49
    -0
      taobao/topsdk/ability132/request/TaobaoTmcMessagesConfirmRequest.go
  13. +35
    -0
      taobao/topsdk/ability132/request/TaobaoTmcMessagesConsumeRequest.go
  14. +30
    -0
      taobao/topsdk/ability132/request/TaobaoTmcMessagesProduceRequest.go
  15. +39
    -0
      taobao/topsdk/ability132/request/TaobaoTmcTopicGroupAddRequest.go
  16. +47
    -0
      taobao/topsdk/ability132/request/TaobaoTmcTopicGroupDeleteRequest.go
  17. +19
    -0
      taobao/topsdk/ability132/response/TaobaoTmcAuthGetResponse.go
  18. +25
    -0
      taobao/topsdk/ability132/response/TaobaoTmcGroupAddResponse.go
  19. +19
    -0
      taobao/topsdk/ability132/response/TaobaoTmcGroupDeleteResponse.go
  20. +27
    -0
      taobao/topsdk/ability132/response/TaobaoTmcGroupsGetResponse.go
  21. +19
    -0
      taobao/topsdk/ability132/response/TaobaoTmcMessagesConfirmResponse.go
  22. +23
    -0
      taobao/topsdk/ability132/response/TaobaoTmcMessagesConsumeResponse.go
  23. +27
    -0
      taobao/topsdk/ability132/response/TaobaoTmcMessagesProduceResponse.go
  24. +19
    -0
      taobao/topsdk/ability132/response/TaobaoTmcTopicGroupAddResponse.go
  25. +19
    -0
      taobao/topsdk/ability132/response/TaobaoTmcTopicGroupDeleteResponse.go
  26. +21
    -0
      taobao/topsdk/constants.go
  27. +698
    -0
      taobao/topsdk/defaultability/Defaultability.go
  28. +60
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto.go
  29. +44
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest.go
  30. +84
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink.go
  31. +48
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO.go
  32. +68
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity.go
  33. +36
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetPromotionItem.go
  34. +76
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink.go
  35. +52
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest.go
  36. +116
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto.go
  37. +48
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO.go
  38. +28
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPageModel.go
  39. +68
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity.go
  40. +36
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionItem.go
  41. +52
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink.go
  42. +148
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest.go
  43. +148
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto.go
  44. +260
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto.go
  45. +20
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailRequest.go
  46. +20
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetBrand.go
  47. +60
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetContentDetail.go
  48. +28
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetImageContent.go
  49. +20
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetImageDto.go
  50. +28
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemBuyNote.go
  51. +44
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemContent.go
  52. +20
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemContentGroup.go
  53. +28
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemDetail.go
  54. +20
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemTicket.go
  55. +44
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit.go
  56. +60
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetShopInfo.go
  57. +28
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetTextContent.go
  58. +44
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod.go
  59. +36
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetTicketTimeRule.go
  60. +36
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetUseNote.go
  61. +20
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemPromotionFilterListFilterTableNameDTO.go
  62. +196
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryBbtItemDto.go
  63. +68
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest.go
  64. +20
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryBrand.go
  65. +44
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryPageModel.go
  66. +12
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetBbtItemShopDetailRequest.go
  67. +20
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetBbtShopDetailDto.go
  68. +20
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetBrand.go
  69. +28
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetCategory.go
  70. +28
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetImageContent.go
  71. +44
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetLocation.go
  72. +52
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetRegion.go
  73. +76
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo.go
  74. +36
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusiness.go
  75. +12
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusinessTime.go
  76. +20
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreStatistics.go
  77. +12
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationDto.go
  78. +20
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationRequest.go
  79. +20
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreRelationQueryPageModel.go
  80. +12
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbCommonEncryptBlowfishModel.go
  81. +20
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetBrand.go
  82. +52
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetContentDetail.go
  83. +28
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetImageContent.go
  84. +20
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetImageDto.go
  85. +20
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetInteger.go
  86. +28
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemBuyNote.go
  87. +44
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemContent.go
  88. +20
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemContentGroup.go
  89. +28
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemDetail.go
  90. +20
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemTicket.go
  91. +220
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetKbItemDetailDto.go
  92. +28
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetKbItemDetailRequest.go
  93. +60
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetShopInfo.go
  94. +28
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetTextContent.go
  95. +44
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetTicketPeriod.go
  96. +36
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetTicketTimeRule.go
  97. +36
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetUseNote.go
  98. +20
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemPromotionFilterListFilterTableNameDTO.go
  99. +148
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO.go
  100. +84
    -0
      taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO.go

+ 91
- 0
taobao/elm.go Ver fichero

@@ -0,0 +1,91 @@
package taobao

import (
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk"
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability"
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain"
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/request"
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/response"
zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
)

const (
ELM_URL = "https://gw.api.taobao.com/router/rest"
)

func ElemePromotionOfficialactivityGet(ak, sk string, args map[string]interface{}) (*response.AlibabaAlscUnionElemePromotionOfficialactivityGetResponse, error) {
client := topsdk.NewDefaultTopClient(ak, sk, ELM_URL, 20000, 20000)
ability := defaultability.NewDefaultability(&client)

alibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest := domain.AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest{}
alibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest.SetPid(zhios_third_party_utils.AnyToString(args["pid"]))
alibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest.SetActivityId(zhios_third_party_utils.AnyToString(args["activity_id"]))
alibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest.SetSid(zhios_third_party_utils.AnyToString(args["sid"]))
alibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest.SetIncludeWxImg(zhios_third_party_utils.AnyToBool(args["include_wx_img"]))
alibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest.SetIncludeQrCode(zhios_third_party_utils.AnyToBool(args["include_qrcode"]))

req := request.AlibabaAlscUnionElemePromotionOfficialactivityGetRequest{}
req.SetQueryRequest(alibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest)

resp, err := ability.AlibabaAlscUnionElemePromotionOfficialactivityGet(&req)
if err != nil {
return nil, err
}
return resp, nil
}

func AlibabaAlscUnionKbcpxPositiveOrder(ak, sk string, args map[string]interface{}) (*response.AlibabaAlscUnionKbcpxPositiveOrderGetResponse, error) {
client := topsdk.NewDefaultTopClient(ak, sk, ELM_URL, 20000, 20000)
ability := defaultability.NewDefaultability(&client)

req := request.AlibabaAlscUnionKbcpxPositiveOrderGetRequest{}
req.SetDateType(zhios_third_party_utils.AnyToInt64(args["date_type"])) //时间维度,1-付款时间 2-创建时间 3-结算时间 4-更新时间
if args["settle_state"] != "" {
req.SetSettleState(zhios_third_party_utils.AnyToInt64(args["settle_state"]))
} //结算状态,1-已结算 2-未结算 不传-全部状态
req.SetEndDate(zhios_third_party_utils.AnyToString(args["end_date"]))
req.SetBizUnit(zhios_third_party_utils.AnyToInt64(args["biz_unit"])) // 1-CPA 2-CPS
req.SetPageSize(zhios_third_party_utils.AnyToInt64(args["page_size"]))
req.SetPageNumber(zhios_third_party_utils.AnyToInt64(args["page"]))
req.SetStartDate(zhios_third_party_utils.AnyToString(args["start_date"]))
if args["order_state"] != "" {
req.SetOrderState(zhios_third_party_utils.AnyToInt64(args["order_state"]))
} //订单状态,0-已失效 1-已下单 2-已付款 4-已收货 不传-全部状态
if args["flow_type"] != "" {
req.SetFlowType(zhios_third_party_utils.AnyToString(args["flow_type"]))
} //场景值,支持多场景(英文逗号分隔)查询7卡券订单,8卡券核销订单,10-媒体出资CPS红包,11-媒体出资霸王餐加码红包
req.SetPid(zhios_third_party_utils.AnyToString(args["pid"]))
if args["order_id"] != "" {
req.SetOrderId(zhios_third_party_utils.AnyToString(args["order_id"]))
}

resp, err := ability.AlibabaAlscUnionKbcpxPositiveOrderGet(&req)
if err != nil {
return nil, err
}
return resp, nil
}

func AlibabaAlscUnionKbcpxRefundOrder(ak, sk string, args map[string]interface{}) (*response.AlibabaAlscUnionKbcpxRefundOrderGetResponse, error) {
client := topsdk.NewDefaultTopClient(ak, sk, ELM_URL, 20000, 20000)
ability := defaultability.NewDefaultability(&client)
req := request.AlibabaAlscUnionKbcpxRefundOrderGetRequest{}
req.SetDateType(zhios_third_party_utils.AnyToInt64(args["date_type"])) //时间维度,1-付款时间 2-创建时间 3-结算时间 4-更新时间
req.SetEndDate(zhios_third_party_utils.AnyToString(args["end_date"]))
req.SetBizUnit(zhios_third_party_utils.AnyToInt64(args["biz_unit"])) // 1-CPA 2-CPS
req.SetPageSize(zhios_third_party_utils.AnyToInt64(args["page_size"]))
req.SetPageNumber(zhios_third_party_utils.AnyToInt64(args["page"]))
req.SetStartDate(zhios_third_party_utils.AnyToString(args["start_date"]))
if args["flow_type"] != "" {
req.SetFlowType(zhios_third_party_utils.AnyToString(args["flow_type"]))
} //场景值,支持多场景(英文逗号分隔)查询7卡券订单,8卡券核销订单,10-媒体出资CPS红包,11-媒体出资霸王餐加码红包
req.SetPid(zhios_third_party_utils.AnyToString(args["pid"]))
if args["order_id"] != "" {
req.SetOrderId(zhios_third_party_utils.AnyToString(args["order_id"]))
}
resp, err := ability.AlibabaAlscUnionKbcpxRefundOrderGet(&req)
if err != nil {
return nil, err
}
return resp, nil
}

+ 30
- 0
taobao/elm_test.go Ver fichero

@@ -0,0 +1,30 @@
package taobao

import (
"testing"
)

func TestGoods(t *testing.T) {
args := map[string]interface{}{
"pid": "alsc_18113681_1962024_4704169",
"activity_id": "10144",
"sid": "21702s1",
"include_wx_img": true,
"include_qrcode": true,
}
ElemePromotionOfficialactivityGet("34319215", "bb07710660e60a321350a35e1e3b91e8", args)
args = map[string]interface{}{
"pid": "alsc_18113681_1962024_4704169",
"page_size": 10,
"page": 1,
"biz_unit": 2,
"start_date": "2023-03-18 17:00:00",
"end_date": "2023-03-18 17:20:00",
"date_type": 1,
"order_state": "",
"order_id": "",
"settle_state": "",
"flow_type": "",
}
AlibabaAlscUnionKbcpxPositiveOrder("34319215", "bb07710660e60a321350a35e1e3b91e8", args)
}

+ 198
- 0
taobao/topsdk/ability132/Ability132.go Ver fichero

@@ -0,0 +1,198 @@
package ability132

import (
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk"
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/ability132/request"
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/ability132/response"
zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
"errors"
"log"
)

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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.HandleJsonResponse(jsonStr, &respStruct)
if respStruct.Body == "" || len(respStruct.Body) == 0 {
respStruct.Body = jsonStr
}
return &respStruct, err
}

+ 12
- 0
taobao/topsdk/ability132/domain/TaobaoTmcGroupsGetTmcGroup.go Ver fichero

@@ -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
}

+ 64
- 0
taobao/topsdk/ability132/domain/TaobaoTmcMessagesConsumeTmcMessage.go Ver fichero

@@ -0,0 +1,64 @@
package domain

import (
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/utils"
)

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 *zhios_third_party_utils.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 zhios_third_party_utils.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
}

+ 28
- 0
taobao/topsdk/ability132/domain/TaobaoTmcMessagesProduceTmcProduceResult.go Ver fichero

@@ -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
}

+ 44
- 0
taobao/topsdk/ability132/domain/TaobaoTmcMessagesProduceTmcPublishMessage.go Ver fichero

@@ -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
- 0
taobao/topsdk/ability132/request/TaobaoTmcAuthGetRequest.go Ver fichero

@@ -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
- 0
taobao/topsdk/ability132/request/TaobaoTmcGroupAddRequest.go Ver fichero

@@ -0,0 +1,49 @@
package request

import (
zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
)

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��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"] = zhios_third_party_utils.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
- 0
taobao/topsdk/ability132/request/TaobaoTmcGroupDeleteRequest.go Ver fichero

@@ -0,0 +1,49 @@
package request

import (
zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
)

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��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"] = zhios_third_party_utils.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
}

+ 47
- 0
taobao/topsdk/ability132/request/TaobaoTmcGroupsGetRequest.go Ver fichero

@@ -0,0 +1,47 @@
package request

import zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"

type TaobaoTmcGroupsGetRequest struct {
/*
要查询分组的名称,多个分组用半角逗号分隔,不传代表查询所有分组信息,但不会返回组下面的用户信息。如果应用没有设置分组则返回空。组名不能以default开头,default开头是系统默认的组。 */
GroupNames *[]string `json:"group_names,omitempty" required:"false" `
/*
页码 defalutValue��1 */
PageNo *int64 `json:"page_no,omitempty" required:"false" `
/*
每页返回多少个分组 defalutValue��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"] = zhios_third_party_utils.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
}

+ 49
- 0
taobao/topsdk/ability132/request/TaobaoTmcMessagesConfirmRequest.go Ver fichero

@@ -0,0 +1,49 @@
package request

import (
zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
)

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"] = zhios_third_party_utils.ConvertBasicList(*req.SMessageIds)
}
if req.FMessageIds != nil {
paramMap["f_message_ids"] = zhios_third_party_utils.ConvertBasicList(*req.FMessageIds)
}
return paramMap
}

func (req *TaobaoTmcMessagesConfirmRequest) ToFileMap() map[string]interface{} {
fileMap := make(map[string]interface{})
return fileMap
}

+ 35
- 0
taobao/topsdk/ability132/request/TaobaoTmcMessagesConsumeRequest.go Ver fichero

@@ -0,0 +1,35 @@
package request

type TaobaoTmcMessagesConsumeRequest struct {
/*
用户分组名称,不传表示消费默认分组,如果应用没有设置用户分组,传入分组名称将会返回错误 */
GroupName *string `json:"group_name,omitempty" required:"false" `
/*
每次批量消费消息的条数,最小值:10;最大值:200 defalutValue��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
}

+ 30
- 0
taobao/topsdk/ability132/request/TaobaoTmcMessagesProduceRequest.go Ver fichero

@@ -0,0 +1,30 @@
package request

import (
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/ability132/domain"
zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
)

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"] = zhios_third_party_utils.ConvertStructList(*req.Messages)
}
return paramMap
}

func (req *TaobaoTmcMessagesProduceRequest) ToFileMap() map[string]interface{} {
fileMap := make(map[string]interface{})
return fileMap
}

+ 39
- 0
taobao/topsdk/ability132/request/TaobaoTmcTopicGroupAddRequest.go Ver fichero

@@ -0,0 +1,39 @@
package request

import (
zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
)

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"] = zhios_third_party_utils.ConvertBasicList(*req.Topics)
}
return paramMap
}

func (req *TaobaoTmcTopicGroupAddRequest) ToFileMap() map[string]interface{} {
fileMap := make(map[string]interface{})
return fileMap
}

+ 47
- 0
taobao/topsdk/ability132/request/TaobaoTmcTopicGroupDeleteRequest.go Ver fichero

@@ -0,0 +1,47 @@
package request

import zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"

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"] = zhios_third_party_utils.ConvertBasicList(*req.Topics)
}
return paramMap
}

func (req *TaobaoTmcTopicGroupDeleteRequest) ToFileMap() map[string]interface{} {
fileMap := make(map[string]interface{})
return fileMap
}

+ 19
- 0
taobao/topsdk/ability132/response/TaobaoTmcAuthGetResponse.go Ver fichero

@@ -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" `
}

+ 25
- 0
taobao/topsdk/ability132/response/TaobaoTmcGroupAddResponse.go Ver fichero

@@ -0,0 +1,25 @@
package response

import zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"

type TaobaoTmcGroupAddResponse struct {

/*
System request id
*/
RequestId string `json:"request_id,omitempty" `

/*
System body
*/
Body string

/*
创建时间
*/
Created zhios_third_party_utils.LocalTime `json:"created,omitempty" `
/*
分组名称
*/
GroupName string `json:"group_name,omitempty" `
}

+ 19
- 0
taobao/topsdk/ability132/response/TaobaoTmcGroupDeleteResponse.go Ver fichero

@@ -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
- 0
taobao/topsdk/ability132/response/TaobaoTmcGroupsGetResponse.go Ver fichero

@@ -0,0 +1,27 @@
package response

import (
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/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" `
}

+ 19
- 0
taobao/topsdk/ability132/response/TaobaoTmcMessagesConfirmResponse.go Ver fichero

@@ -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" `
}

+ 23
- 0
taobao/topsdk/ability132/response/TaobaoTmcMessagesConsumeResponse.go Ver fichero

@@ -0,0 +1,23 @@
package response

import (
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/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" `
}

+ 27
- 0
taobao/topsdk/ability132/response/TaobaoTmcMessagesProduceResponse.go Ver fichero

@@ -0,0 +1,27 @@
package response

import (
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/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" `
}

+ 19
- 0
taobao/topsdk/ability132/response/TaobaoTmcTopicGroupAddResponse.go Ver fichero

@@ -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" `
}

+ 19
- 0
taobao/topsdk/ability132/response/TaobaoTmcTopicGroupDeleteResponse.go Ver fichero

@@ -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" `
}

+ 21
- 0
taobao/topsdk/constants.go Ver fichero

@@ -0,0 +1,21 @@
package topsdk

/**
sdk使用常量,请勿修改
*/
const (
// SdkVersion 版本号
SdkVersion = "new_go_sdk_20230318"

// ApiFormat api格式
ApiFormat = "json"

// SignMethod 签名算法
SignMethod = "hmac-sha256"

// Version 网关版本号
TopVersion = "2.0"

// DateFormat 日期格式
DateFormat = "2006-01-02 15:04:05"
)

+ 698
- 0
taobao/topsdk/defaultability/Defaultability.go Ver fichero

@@ -0,0 +1,698 @@
package defaultability

import (
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk"
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/request"
"code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/response"
zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
"errors"
"log"
)

type Defaultability struct {
Client *topsdk.TopClient
}

func NewDefaultability(client *topsdk.TopClient) *Defaultability {
return &Defaultability{client}
}

/*
本地生活爆爆团选品筛选集合
*/
func (ability *Defaultability) AlibabaAlscUnionKbBbtItemPromotionFilterList(req *request.AlibabaAlscUnionKbBbtItemPromotionFilterListRequest) (*response.AlibabaAlscUnionKbBbtItemPromotionFilterListResponse, error) {
if ability.Client == nil {
return nil, errors.New("Defaultability topClient is nil")
}
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.bbt.item.promotion.filter.list", req.ToMap(), req.ToFileMap())
var respStruct = response.AlibabaAlscUnionKbBbtItemPromotionFilterListResponse{}
if err != nil {
log.Println("alibabaAlscUnionKbBbtItemPromotionFilterList error", err)
return &respStruct, err
}
err = zhios_third_party_utils.HandleJsonResponse(jsonStr, &respStruct)
if respStruct.Body == "" || len(respStruct.Body) == 0 {
respStruct.Body = jsonStr
}
return &respStruct, err
}

/*
本地联盟爆爆团商品详情
*/
func (ability *Defaultability) AlibabaAlscUnionKbBbtItemDetailGet(req *request.AlibabaAlscUnionKbBbtItemDetailGetRequest) (*response.AlibabaAlscUnionKbBbtItemDetailGetResponse, error) {
if ability.Client == nil {
return nil, errors.New("Defaultability topClient is nil")
}
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.bbt.item.detail.get", req.ToMap(), req.ToFileMap())
var respStruct = response.AlibabaAlscUnionKbBbtItemDetailGetResponse{}
if err != nil {
log.Println("alibabaAlscUnionKbBbtItemDetailGet error", err)
return &respStruct, err
}
err = zhios_third_party_utils.HandleJsonResponse(jsonStr, &respStruct)
if respStruct.Body == "" || len(respStruct.Body) == 0 {
respStruct.Body = jsonStr
}
return &respStruct, err
}

/*
本地联盟爆爆团商品门店关系
*/
func (ability *Defaultability) AlibabaAlscUnionKbBbtItemStoreRelationQuery(req *request.AlibabaAlscUnionKbBbtItemStoreRelationQueryRequest) (*response.AlibabaAlscUnionKbBbtItemStoreRelationQueryResponse, error) {
if ability.Client == nil {
return nil, errors.New("Defaultability topClient is nil")
}
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.bbt.item.store.relation.query", req.ToMap(), req.ToFileMap())
var respStruct = response.AlibabaAlscUnionKbBbtItemStoreRelationQueryResponse{}
if err != nil {
log.Println("alibabaAlscUnionKbBbtItemStoreRelationQuery error", err)
return &respStruct, err
}
err = zhios_third_party_utils.HandleJsonResponse(jsonStr, &respStruct)
if respStruct.Body == "" || len(respStruct.Body) == 0 {
respStruct.Body = jsonStr
}
return &respStruct, err
}

/*
本地生活媒体平台口碑选品筛选项集合
*/
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 = zhios_third_party_utils.HandleJsonResponse(jsonStr, &respStruct)
if respStruct.Body == "" || len(respStruct.Body) == 0 {
respStruct.Body = jsonStr
}
return &respStruct, err
}

/*
本地联盟爆爆团门店详情
*/
func (ability *Defaultability) AlibabaAlscUnionKbBbtItemStoreDetailGet(req *request.AlibabaAlscUnionKbBbtItemStoreDetailGetRequest) (*response.AlibabaAlscUnionKbBbtItemStoreDetailGetResponse, error) {
if ability.Client == nil {
return nil, errors.New("Defaultability topClient is nil")
}
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.bbt.item.store.detail.get", req.ToMap(), req.ToFileMap())
var respStruct = response.AlibabaAlscUnionKbBbtItemStoreDetailGetResponse{}
if err != nil {
log.Println("alibabaAlscUnionKbBbtItemStoreDetailGet error", err)
return &respStruct, err
}
err = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.HandleJsonResponse(jsonStr, &respStruct)
if respStruct.Body == "" || len(respStruct.Body) == 0 {
respStruct.Body = jsonStr
}
return &respStruct, err
}

/*
加密方法
*/
func (ability *Defaultability) AlibabaAlscUnionKbCommonEncrypt(req *request.AlibabaAlscUnionKbCommonEncryptRequest) (*response.AlibabaAlscUnionKbCommonEncryptResponse, error) {
if ability.Client == nil {
return nil, errors.New("Defaultability topClient is nil")
}
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.common.encrypt", req.ToMap(), req.ToFileMap())
var respStruct = response.AlibabaAlscUnionKbCommonEncryptResponse{}
if err != nil {
log.Println("alibabaAlscUnionKbCommonEncrypt error", err)
return &respStruct, err
}
err = zhios_third_party_utils.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 = zhios_third_party_utils.HandleJsonResponse(jsonStr, &respStruct)
if respStruct.Body == "" || len(respStruct.Body) == 0 {
respStruct.Body = jsonStr
}
return &respStruct, err
}

/*
openapi预下单订单支付
*/
func (ability *Defaultability) AlibabaAlscUnionKbOrderPay(req *request.AlibabaAlscUnionKbOrderPayRequest) (*response.AlibabaAlscUnionKbOrderPayResponse, error) {
if ability.Client == nil {
return nil, errors.New("Defaultability topClient is nil")
}
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.order.pay", req.ToMap(), req.ToFileMap())
var respStruct = response.AlibabaAlscUnionKbOrderPayResponse{}
if err != nil {
log.Println("alibabaAlscUnionKbOrderPay error", err)
return &respStruct, err
}
err = zhios_third_party_utils.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 = zhios_third_party_utils.HandleJsonResponse(jsonStr, &respStruct)
if respStruct.Body == "" || len(respStruct.Body) == 0 {
respStruct.Body = jsonStr
}
return &respStruct, err
}

/*
获取用户已开通消息
*/
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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.HandleJsonResponse(jsonStr, &respStruct)
if respStruct.Body == "" || len(respStruct.Body) == 0 {
respStruct.Body = jsonStr
}
return &respStruct, err
}

/*
本地联盟爆爆团商品列表
*/
func (ability *Defaultability) AlibabaAlscUnionKbBbtItemQuery(req *request.AlibabaAlscUnionKbBbtItemQueryRequest) (*response.AlibabaAlscUnionKbBbtItemQueryResponse, error) {
if ability.Client == nil {
return nil, errors.New("Defaultability topClient is nil")
}
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.bbt.item.query", req.ToMap(), req.ToFileMap())
var respStruct = response.AlibabaAlscUnionKbBbtItemQueryResponse{}
if err != nil {
log.Println("alibabaAlscUnionKbBbtItemQuery error", err)
return &respStruct, err
}
err = zhios_third_party_utils.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 = zhios_third_party_utils.HandleJsonResponse(jsonStr, &respStruct)
if respStruct.Body == "" || len(respStruct.Body) == 0 {
respStruct.Body = jsonStr
}
return &respStruct, err
}

/*
openapi订单创建
*/
func (ability *Defaultability) AlibabaAlscUnionKbOrderCreate(req *request.AlibabaAlscUnionKbOrderCreateRequest) (*response.AlibabaAlscUnionKbOrderCreateResponse, error) {
if ability.Client == nil {
return nil, errors.New("Defaultability topClient is nil")
}
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.order.create", req.ToMap(), req.ToFileMap())
var respStruct = response.AlibabaAlscUnionKbOrderCreateResponse{}
if err != nil {
log.Println("alibabaAlscUnionKbOrderCreate error", err)
return &respStruct, err
}
err = zhios_third_party_utils.HandleJsonResponse(jsonStr, &respStruct)
if respStruct.Body == "" || len(respStruct.Body) == 0 {
respStruct.Body = jsonStr
}
return &respStruct, err
}

/*
openapi订单查询
*/
func (ability *Defaultability) AlibabaAlscUnionKbOrderQuery(req *request.AlibabaAlscUnionKbOrderQueryRequest) (*response.AlibabaAlscUnionKbOrderQueryResponse, error) {
if ability.Client == nil {
return nil, errors.New("Defaultability topClient is nil")
}
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.order.query", req.ToMap(), req.ToFileMap())
var respStruct = response.AlibabaAlscUnionKbOrderQueryResponse{}
if err != nil {
log.Println("alibabaAlscUnionKbOrderQuery error", err)
return &respStruct, err
}
err = zhios_third_party_utils.HandleJsonResponse(jsonStr, &respStruct)
if respStruct.Body == "" || len(respStruct.Body) == 0 {
respStruct.Body = jsonStr
}
return &respStruct, err
}

/*
openapi订单售中退
*/
func (ability *Defaultability) AlibabaAlscUnionKbOrderRefund(req *request.AlibabaAlscUnionKbOrderRefundRequest) (*response.AlibabaAlscUnionKbOrderRefundResponse, error) {
if ability.Client == nil {
return nil, errors.New("Defaultability topClient is nil")
}
var jsonStr, err = ability.Client.Execute("alibaba.alsc.union.kb.order.refund", req.ToMap(), req.ToFileMap())
var respStruct = response.AlibabaAlscUnionKbOrderRefundResponse{}
if err != nil {
log.Println("alibabaAlscUnionKbOrderRefund error", err)
return &respStruct, err
}
err = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.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 = zhios_third_party_utils.HandleJsonResponse(jsonStr, &respStruct)
if respStruct.Body == "" || len(respStruct.Body) == 0 {
respStruct.Body = jsonStr
}
return &respStruct, err
}

+ 60
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto.go Ver fichero

@@ -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
}

+ 44
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest.go Ver fichero

@@ -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
}

+ 84
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink.go Ver fichero

@@ -0,0 +1,84 @@
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" `
}

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
}

+ 48
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO.go Ver fichero

@@ -0,0 +1,48 @@
package domain

import (
zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
)

type AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO struct {
/*
券id */
TemplateId *int64 `json:"template_id,omitempty" `

/*
券金额,单位元 */
Amount *string `json:"amount,omitempty" `

/*
活动有效期天(发出去的有效期) */
ValidPeriod *int64 `json:"valid_period,omitempty" `

/*
活动开始时间 */
StartTime *zhios_third_party_utils.LocalTime `json:"start_time,omitempty" `

/*
活动结束时间 */
EndTime *zhios_third_party_utils.LocalTime `json:"end_time,omitempty" `
}

func (s *AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO) SetTemplateId(v int64) *AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO {
s.TemplateId = &v
return s
}
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO) SetAmount(v string) *AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO {
s.Amount = &v
return s
}
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO) SetValidPeriod(v int64) *AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO {
s.ValidPeriod = &v
return s
}
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO) SetStartTime(v zhios_third_party_utils.LocalTime) *AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO {
s.StartTime = &v
return s
}
func (s *AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO) SetEndTime(v zhios_third_party_utils.LocalTime) *AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO {
s.EndTime = &v
return s
}

+ 68
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity.go Ver fichero

@@ -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
}

+ 36
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetPromotionItem.go Ver fichero

@@ -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
}

+ 76
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink.go Ver fichero

@@ -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
}

+ 52
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest.go Ver fichero

@@ -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
}

+ 116
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto.go Ver fichero

@@ -0,0 +1,116 @@
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" `

/*
叠加券活动数据 */
OverlayCoupon *AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO `json:"overlay_coupon,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) SetOverlayCoupon(v AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO) *AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto {
s.OverlayCoupon = &v
return s
}

+ 48
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO.go Ver fichero

@@ -0,0 +1,48 @@
package domain

import (
zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils"
)

type AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO struct {
/*
券id */
TemplateId *int64 `json:"template_id,omitempty" `

/*
券金额,单位元 */
Amount *string `json:"amount,omitempty" `

/*
活动有效期天(发出去的有效期) */
ValidPeriod *int64 `json:"valid_period,omitempty" `

/*
活动开始时间 */
StartTime *zhios_third_party_utils.LocalTime `json:"start_time,omitempty" `

/*
活动结束时间 */
EndTime *zhios_third_party_utils.LocalTime `json:"end_time,omitempty" `
}

func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO) SetTemplateId(v int64) *AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO {
s.TemplateId = &v
return s
}
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO) SetAmount(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO {
s.Amount = &v
return s
}
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO) SetValidPeriod(v int64) *AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO {
s.ValidPeriod = &v
return s
}
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO) SetStartTime(v zhios_third_party_utils.LocalTime) *AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO {
s.StartTime = &v
return s
}
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO) SetEndTime(v zhios_third_party_utils.LocalTime) *AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO {
s.EndTime = &v
return s
}

+ 28
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPageModel.go Ver fichero

@@ -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
}

+ 68
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity.go Ver fichero

@@ -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
}

+ 36
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionItem.go Ver fichero

@@ -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
}

+ 52
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink.go Ver fichero

@@ -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
}

+ 148
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest.go Ver fichero

@@ -0,0 +1,148 @@
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" `

/*
in_activity=false的条件下,召回的非奖励金活动cps商家是否需要带出叠加券 */
RecallOverlayCoupon *bool `json:"recall_overlay_coupon,omitempty" `

/*
filter_has_overlay_coupon=true的条件下,限定只召回带叠加券的cps商户 */
FilterHasOverlayCoupon *bool `json:"filter_has_overlay_coupon,omitempty" `

/*
filter_has_overlay_coupon=true的情况下,限定的最小叠加券券金额,单位元 */
MinOverlayCouponAmount *string `json:"min_overlay_coupon_amount,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" `
}

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) SetRecallOverlayCoupon(v bool) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
s.RecallOverlayCoupon = &v
return s
}
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) SetFilterHasOverlayCoupon(v bool) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
s.FilterHasOverlayCoupon = &v
return s
}
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) SetMinOverlayCouponAmount(v string) *AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest {
s.MinOverlayCouponAmount = &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
}

+ 148
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto.go Ver fichero

@@ -0,0 +1,148 @@
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" `

/*
叠加券活动数据 */
OverlayCoupon *AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO `json:"overlay_coupon,omitempty" `

/*
预估佣金(分) */
Commission *int64 `json:"commission,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) SetOverlayCoupon(v AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
s.OverlayCoupon = &v
return s
}
func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto) SetCommission(v int64) *AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto {
s.Commission = &v
return s
}

+ 260
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto.go Ver fichero

@@ -0,0 +1,260 @@
package domain

type AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto 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 *[]AlibabaAlscUnionKbBbtItemDetailGetImageDto `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" `

/*
佣金比例 */
CommissionRate *string `json:"commission_rate,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 *AlibabaAlscUnionKbBbtItemDetailGetItemDetail `json:"item_detail,omitempty" `

/*
商品子类型 */
ItemSubType *string `json:"item_sub_type,omitempty" `

/*
可核销次数 */
UseTimes *int64 `json:"use_times,omitempty" `

/*
商品可用城市 */
ApplyCityIds *[]string `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 *[]AlibabaAlscUnionKbBbtItemDetailGetImageDto `json:"shop_item_images,omitempty" `

/*
门店环境相册 */
ShopEnvironmentImages *[]AlibabaAlscUnionKbBbtItemDetailGetImageDto `json:"shop_environment_images,omitempty" `

/*
品牌 */
Brand *AlibabaAlscUnionKbBbtItemDetailGetBrand `json:"brand,omitempty" `

/*
三方服务商名称 */
TripartiteName *string `json:"tripartite_name,omitempty" `

/*
三方服务商appKey */
TripartiteAppkey *string `json:"tripartite_appkey,omitempty" `

/*
三方站点名称 */
TripartiteSiteName *string `json:"tripartite_site_name,omitempty" `

/*
免责声明 */
Disclaimer *string `json:"disclaimer,omitempty" `

/*
限购信息 */
PurchaseLimit *AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit `json:"purchase_limit,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetItemId(v string) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.ItemId = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetTitle(v string) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.Title = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetSubTitle(v string) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.SubTitle = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetMainPicture(v string) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.MainPicture = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetImages(v []AlibabaAlscUnionKbBbtItemDetailGetImageDto) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.Images = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetSaleStartTime(v int64) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.SaleStartTime = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetSaleEndTime(v int64) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.SaleEndTime = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetOriginalPriceCent(v int64) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.OriginalPriceCent = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetActivityPriceCent(v int64) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.ActivityPriceCent = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetCommissionRate(v string) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.CommissionRate = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetTotalSales(v int64) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.TotalSales = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetStock(v int64) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.Stock = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetApplyShopCount(v int64) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.ApplyShopCount = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetDiscount(v string) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.Discount = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetItemDetail(v AlibabaAlscUnionKbBbtItemDetailGetItemDetail) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.ItemDetail = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetItemSubType(v string) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.ItemSubType = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetUseTimes(v int64) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.UseTimes = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetApplyCityIds(v []string) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.ApplyCityIds = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetNeedPhone(v bool) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.NeedPhone = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetTbCategory2Id(v string) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.TbCategory2Id = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetTbCategory2Name(v string) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.TbCategory2Name = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetTbCategory3Id(v string) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.TbCategory3Id = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetTbCategory3Name(v string) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.TbCategory3Name = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetBuyLimit(v int64) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.BuyLimit = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetShopItemImages(v []AlibabaAlscUnionKbBbtItemDetailGetImageDto) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.ShopItemImages = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetShopEnvironmentImages(v []AlibabaAlscUnionKbBbtItemDetailGetImageDto) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.ShopEnvironmentImages = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetBrand(v AlibabaAlscUnionKbBbtItemDetailGetBrand) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.Brand = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetTripartiteName(v string) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.TripartiteName = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetTripartiteAppkey(v string) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.TripartiteAppkey = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetTripartiteSiteName(v string) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.TripartiteSiteName = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetDisclaimer(v string) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.Disclaimer = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto) SetPurchaseLimit(v AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto {
s.PurchaseLimit = &v
return s
}

+ 20
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailRequest.go Ver fichero

@@ -0,0 +1,20 @@
package domain

type AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailRequest struct {
/*
品ID */
ItemId *string `json:"item_id,omitempty" `

/*
城市ID */
CityId *string `json:"city_id,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailRequest) SetItemId(v string) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailRequest {
s.ItemId = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailRequest) SetCityId(v string) *AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailRequest {
s.CityId = &v
return s
}

+ 20
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetBrand.go Ver fichero

@@ -0,0 +1,20 @@
package domain

type AlibabaAlscUnionKbBbtItemDetailGetBrand struct {
/*
品牌Id */
BrandId *string `json:"brand_id,omitempty" `

/*
品牌名 */
BrandName *string `json:"brand_name,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemDetailGetBrand) SetBrandId(v string) *AlibabaAlscUnionKbBbtItemDetailGetBrand {
s.BrandId = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetBrand) SetBrandName(v string) *AlibabaAlscUnionKbBbtItemDetailGetBrand {
s.BrandName = &v
return s
}

+ 60
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetContentDetail.go Ver fichero

@@ -0,0 +1,60 @@
package domain

type AlibabaAlscUnionKbBbtItemDetailGetContentDetail 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" `

/*
文本内容 */
TextContents *[]AlibabaAlscUnionKbBbtItemDetailGetTextContent `json:"text_contents,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemDetailGetContentDetail) SetName(v string) *AlibabaAlscUnionKbBbtItemDetailGetContentDetail {
s.Name = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetContentDetail) SetPrice(v string) *AlibabaAlscUnionKbBbtItemDetailGetContentDetail {
s.Price = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetContentDetail) SetQuantity(v int64) *AlibabaAlscUnionKbBbtItemDetailGetContentDetail {
s.Quantity = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetContentDetail) SetSumPrice(v string) *AlibabaAlscUnionKbBbtItemDetailGetContentDetail {
s.SumPrice = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetContentDetail) SetUnit(v string) *AlibabaAlscUnionKbBbtItemDetailGetContentDetail {
s.Unit = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetContentDetail) SetSpec(v string) *AlibabaAlscUnionKbBbtItemDetailGetContentDetail {
s.Spec = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetContentDetail) SetTextContents(v []AlibabaAlscUnionKbBbtItemDetailGetTextContent) *AlibabaAlscUnionKbBbtItemDetailGetContentDetail {
s.TextContents = &v
return s
}

+ 28
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetImageContent.go Ver fichero

@@ -0,0 +1,28 @@
package domain

type AlibabaAlscUnionKbBbtItemDetailGetImageContent struct {
/*
标题 */
Title *string `json:"title,omitempty" `

/*
描述 */
Desc *string `json:"desc,omitempty" `

/*
图片列表 */
Urls *[]string `json:"urls,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemDetailGetImageContent) SetTitle(v string) *AlibabaAlscUnionKbBbtItemDetailGetImageContent {
s.Title = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetImageContent) SetDesc(v string) *AlibabaAlscUnionKbBbtItemDetailGetImageContent {
s.Desc = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetImageContent) SetUrls(v []string) *AlibabaAlscUnionKbBbtItemDetailGetImageContent {
s.Urls = &v
return s
}

+ 20
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetImageDto.go Ver fichero

@@ -0,0 +1,20 @@
package domain

type AlibabaAlscUnionKbBbtItemDetailGetImageDto struct {
/*
图片名 */
Name *string `json:"name,omitempty" `

/*
图片地址 */
Url *string `json:"url,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemDetailGetImageDto) SetName(v string) *AlibabaAlscUnionKbBbtItemDetailGetImageDto {
s.Name = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetImageDto) SetUrl(v string) *AlibabaAlscUnionKbBbtItemDetailGetImageDto {
s.Url = &v
return s
}

+ 28
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemBuyNote.go Ver fichero

@@ -0,0 +1,28 @@
package domain

type AlibabaAlscUnionKbBbtItemDetailGetItemBuyNote struct {
/*
商家须知 */
ShopInfo *AlibabaAlscUnionKbBbtItemDetailGetShopInfo `json:"shop_info,omitempty" `

/*
使用须知 */
UseNote *AlibabaAlscUnionKbBbtItemDetailGetUseNote `json:"use_note,omitempty" `

/*
更多须知内容 */
ExtraNotes *[]AlibabaAlscUnionKbBbtItemDetailGetTextContent `json:"extra_notes,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemDetailGetItemBuyNote) SetShopInfo(v AlibabaAlscUnionKbBbtItemDetailGetShopInfo) *AlibabaAlscUnionKbBbtItemDetailGetItemBuyNote {
s.ShopInfo = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetItemBuyNote) SetUseNote(v AlibabaAlscUnionKbBbtItemDetailGetUseNote) *AlibabaAlscUnionKbBbtItemDetailGetItemBuyNote {
s.UseNote = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetItemBuyNote) SetExtraNotes(v []AlibabaAlscUnionKbBbtItemDetailGetTextContent) *AlibabaAlscUnionKbBbtItemDetailGetItemBuyNote {
s.ExtraNotes = &v
return s
}

+ 44
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemContent.go Ver fichero

@@ -0,0 +1,44 @@
package domain

type AlibabaAlscUnionKbBbtItemDetailGetItemContent struct {
/*
商品内容详情组 */
ContentGroups *[]AlibabaAlscUnionKbBbtItemDetailGetItemContentGroup `json:"content_groups,omitempty" `

/*
图文详情 */
ImageContents *[]AlibabaAlscUnionKbBbtItemDetailGetImageContent `json:"image_contents,omitempty" `

/*
商品说明 */
TextContents *[]AlibabaAlscUnionKbBbtItemDetailGetTextContent `json:"text_contents,omitempty" `

/*
补充说明 */
Remarks *[]string `json:"remarks,omitempty" `

/*
商家公告 */
Announcement *string `json:"announcement,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemDetailGetItemContent) SetContentGroups(v []AlibabaAlscUnionKbBbtItemDetailGetItemContentGroup) *AlibabaAlscUnionKbBbtItemDetailGetItemContent {
s.ContentGroups = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetItemContent) SetImageContents(v []AlibabaAlscUnionKbBbtItemDetailGetImageContent) *AlibabaAlscUnionKbBbtItemDetailGetItemContent {
s.ImageContents = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetItemContent) SetTextContents(v []AlibabaAlscUnionKbBbtItemDetailGetTextContent) *AlibabaAlscUnionKbBbtItemDetailGetItemContent {
s.TextContents = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetItemContent) SetRemarks(v []string) *AlibabaAlscUnionKbBbtItemDetailGetItemContent {
s.Remarks = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetItemContent) SetAnnouncement(v string) *AlibabaAlscUnionKbBbtItemDetailGetItemContent {
s.Announcement = &v
return s
}

+ 20
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemContentGroup.go Ver fichero

@@ -0,0 +1,20 @@
package domain

type AlibabaAlscUnionKbBbtItemDetailGetItemContentGroup struct {
/*
组标题 */
Title *string `json:"title,omitempty" `

/*
组内列表 */
ContentDetails *[]AlibabaAlscUnionKbBbtItemDetailGetContentDetail `json:"content_details,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemDetailGetItemContentGroup) SetTitle(v string) *AlibabaAlscUnionKbBbtItemDetailGetItemContentGroup {
s.Title = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetItemContentGroup) SetContentDetails(v []AlibabaAlscUnionKbBbtItemDetailGetContentDetail) *AlibabaAlscUnionKbBbtItemDetailGetItemContentGroup {
s.ContentDetails = &v
return s
}

+ 28
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemDetail.go Ver fichero

@@ -0,0 +1,28 @@
package domain

type AlibabaAlscUnionKbBbtItemDetailGetItemDetail struct {
/*
内容详情 */
ItemContent *AlibabaAlscUnionKbBbtItemDetailGetItemContent `json:"item_content,omitempty" `

/*
购买须知 */
ItemBuyNote *AlibabaAlscUnionKbBbtItemDetailGetItemBuyNote `json:"item_buy_note,omitempty" `

/*
凭证 */
ItemTicket *AlibabaAlscUnionKbBbtItemDetailGetItemTicket `json:"item_ticket,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemDetailGetItemDetail) SetItemContent(v AlibabaAlscUnionKbBbtItemDetailGetItemContent) *AlibabaAlscUnionKbBbtItemDetailGetItemDetail {
s.ItemContent = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetItemDetail) SetItemBuyNote(v AlibabaAlscUnionKbBbtItemDetailGetItemBuyNote) *AlibabaAlscUnionKbBbtItemDetailGetItemDetail {
s.ItemBuyNote = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetItemDetail) SetItemTicket(v AlibabaAlscUnionKbBbtItemDetailGetItemTicket) *AlibabaAlscUnionKbBbtItemDetailGetItemDetail {
s.ItemTicket = &v
return s
}

+ 20
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemTicket.go Ver fichero

@@ -0,0 +1,20 @@
package domain

type AlibabaAlscUnionKbBbtItemDetailGetItemTicket struct {
/*
有效期 */
TicketPeriod *AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod `json:"ticket_period,omitempty" `

/*
时间规则 */
TicketTimeRules *[]AlibabaAlscUnionKbBbtItemDetailGetTicketTimeRule `json:"ticket_time_rules,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemDetailGetItemTicket) SetTicketPeriod(v AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod) *AlibabaAlscUnionKbBbtItemDetailGetItemTicket {
s.TicketPeriod = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetItemTicket) SetTicketTimeRules(v []AlibabaAlscUnionKbBbtItemDetailGetTicketTimeRule) *AlibabaAlscUnionKbBbtItemDetailGetItemTicket {
s.TicketTimeRules = &v
return s
}

+ 44
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit.go Ver fichero

@@ -0,0 +1,44 @@
package domain

type AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit struct {
/*
商品限购-每人每天限购(-1表示不限购) */
ItemDailyLimitPerUser *int64 `json:"item_daily_limit_per_user,omitempty" `

/*
商品限购-每人终身限购(-1表示不限购) */
ItemLimitPerUser *int64 `json:"item_limit_per_user,omitempty" `

/*
商品限购-每人每订单限购(-1表示不限购) */
ItemLimitPerUserOrder *int64 `json:"item_limit_per_user_order,omitempty" `

/*
活动限购-每人每天限购(-1表示不限购) */
ActivityDailyLimitPerUser *int64 `json:"activity_daily_limit_per_user,omitempty" `

/*
活动限购-每人每活动限购(-1表示不限购) */
ActivityLimitPerUser *int64 `json:"activity_limit_per_user,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit) SetItemDailyLimitPerUser(v int64) *AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit {
s.ItemDailyLimitPerUser = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit) SetItemLimitPerUser(v int64) *AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit {
s.ItemLimitPerUser = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit) SetItemLimitPerUserOrder(v int64) *AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit {
s.ItemLimitPerUserOrder = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit) SetActivityDailyLimitPerUser(v int64) *AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit {
s.ActivityDailyLimitPerUser = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit) SetActivityLimitPerUser(v int64) *AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit {
s.ActivityLimitPerUser = &v
return s
}

+ 60
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetShopInfo.go Ver fichero

@@ -0,0 +1,60 @@
package domain

type AlibabaAlscUnionKbBbtItemDetailGetShopInfo 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 *AlibabaAlscUnionKbBbtItemDetailGetShopInfo) SetFreeWifi(v bool) *AlibabaAlscUnionKbBbtItemDetailGetShopInfo {
s.FreeWifi = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetShopInfo) SetFreePark(v bool) *AlibabaAlscUnionKbBbtItemDetailGetShopInfo {
s.FreePark = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetShopInfo) SetFreeParkHours(v int64) *AlibabaAlscUnionKbBbtItemDetailGetShopInfo {
s.FreeParkHours = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetShopInfo) SetParkFeePerHour(v string) *AlibabaAlscUnionKbBbtItemDetailGetShopInfo {
s.ParkFeePerHour = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetShopInfo) SetParkFeeUpperBoundPerDay(v string) *AlibabaAlscUnionKbBbtItemDetailGetShopInfo {
s.ParkFeeUpperBoundPerDay = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetShopInfo) SetSupplyInvoice(v bool) *AlibabaAlscUnionKbBbtItemDetailGetShopInfo {
s.SupplyInvoice = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetShopInfo) SetInvoiceTypes(v []string) *AlibabaAlscUnionKbBbtItemDetailGetShopInfo {
s.InvoiceTypes = &v
return s
}

+ 28
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetTextContent.go Ver fichero

@@ -0,0 +1,28 @@
package domain

type AlibabaAlscUnionKbBbtItemDetailGetTextContent struct {
/*
标题 */
Title *string `json:"title,omitempty" `

/*
描述 */
Desc *string `json:"desc,omitempty" `

/*
内容 */
Contents *[]string `json:"contents,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemDetailGetTextContent) SetTitle(v string) *AlibabaAlscUnionKbBbtItemDetailGetTextContent {
s.Title = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetTextContent) SetDesc(v string) *AlibabaAlscUnionKbBbtItemDetailGetTextContent {
s.Desc = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetTextContent) SetContents(v []string) *AlibabaAlscUnionKbBbtItemDetailGetTextContent {
s.Contents = &v
return s
}

+ 44
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod.go Ver fichero

@@ -0,0 +1,44 @@
package domain

type AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod 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 *AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod) SetPeriodType(v string) *AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod {
s.PeriodType = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod) SetPeriod(v int64) *AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod {
s.Period = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod) SetNatureDay(v bool) *AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod {
s.NatureDay = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod) SetStartTime(v int64) *AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod {
s.StartTime = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod) SetEndTime(v int64) *AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod {
s.EndTime = &v
return s
}

+ 36
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetTicketTimeRule.go Ver fichero

@@ -0,0 +1,36 @@
package domain

type AlibabaAlscUnionKbBbtItemDetailGetTicketTimeRule 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 *AlibabaAlscUnionKbBbtItemDetailGetTicketTimeRule) SetRuleApplyMode(v string) *AlibabaAlscUnionKbBbtItemDetailGetTicketTimeRule {
s.RuleApplyMode = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetTicketTimeRule) SetHourMinRules(v []string) *AlibabaAlscUnionKbBbtItemDetailGetTicketTimeRule {
s.HourMinRules = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetTicketTimeRule) SetWeekRules(v []string) *AlibabaAlscUnionKbBbtItemDetailGetTicketTimeRule {
s.WeekRules = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetTicketTimeRule) SetDateRules(v []string) *AlibabaAlscUnionKbBbtItemDetailGetTicketTimeRule {
s.DateRules = &v
return s
}

+ 36
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetUseNote.go Ver fichero

@@ -0,0 +1,36 @@
package domain

type AlibabaAlscUnionKbBbtItemDetailGetUseNote 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 *AlibabaAlscUnionKbBbtItemDetailGetUseNote) SetNeedReserve(v bool) *AlibabaAlscUnionKbBbtItemDetailGetUseNote {
s.NeedReserve = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetUseNote) SetReserveDesc(v string) *AlibabaAlscUnionKbBbtItemDetailGetUseNote {
s.ReserveDesc = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetUseNote) SetLimitUserNum(v bool) *AlibabaAlscUnionKbBbtItemDetailGetUseNote {
s.LimitUserNum = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemDetailGetUseNote) SetUserNumLimited(v int64) *AlibabaAlscUnionKbBbtItemDetailGetUseNote {
s.UserNumLimited = &v
return s
}

+ 20
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemPromotionFilterListFilterTableNameDTO.go Ver fichero

@@ -0,0 +1,20 @@
package domain

type AlibabaAlscUnionKbBbtItemPromotionFilterListFilterTableNameDTO struct {
/*
筛选项key值 */
FilterKey *string `json:"filter_key,omitempty" `

/*
筛选项展示名称 */
FilterName *string `json:"filter_name,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemPromotionFilterListFilterTableNameDTO) SetFilterKey(v string) *AlibabaAlscUnionKbBbtItemPromotionFilterListFilterTableNameDTO {
s.FilterKey = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemPromotionFilterListFilterTableNameDTO) SetFilterName(v string) *AlibabaAlscUnionKbBbtItemPromotionFilterListFilterTableNameDTO {
s.FilterName = &v
return s
}

+ 196
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryBbtItemDto.go Ver fichero

@@ -0,0 +1,196 @@
package domain

type AlibabaAlscUnionKbBbtItemQueryBbtItemDto struct {
/*
商品ID */
ItemId *string `json:"item_id,omitempty" `

/*
标题 */
Title *string `json:"title,omitempty" `

/*
主图 */
MainPicture *string `json:"main_picture,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" `

/*
佣金比例 */
CommissionRate *string `json:"commission_rate,omitempty" `

/*
适用门店数量(city_id不为空则返回当前城市可用门店数,否则返回全部可用门店数) */
ApplyShopCount *int64 `json:"apply_shop_count,omitempty" `

/*
销量 */
TotalSales *int64 `json:"total_sales,omitempty" `

/*
库存 */
Stock *int64 `json:"stock,omitempty" `

/*
商品子类型 */
ItemSubType *string `json:"item_sub_type,omitempty" `

/*
使用次数 */
UseTimes *int64 `json:"use_times,omitempty" `

/*
商品可用城市 */
ApplyCityIds *[]string `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" `

/*
品牌 */
Brand *AlibabaAlscUnionKbBbtItemQueryBrand `json:"brand,omitempty" `

/*
三方服务商名称 */
TripartiteName *string `json:"tripartite_name,omitempty" `

/*
三方服务商appKey */
TripartiteAppkey *string `json:"tripartite_appkey,omitempty" `

/*
三方站点名称 */
TripartiteSiteName *string `json:"tripartite_site_name,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetItemId(v string) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.ItemId = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetTitle(v string) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.Title = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetMainPicture(v string) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.MainPicture = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetSaleStartTime(v int64) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.SaleStartTime = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetSaleEndTime(v int64) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.SaleEndTime = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetOriginalPriceCent(v int64) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.OriginalPriceCent = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetActivityPriceCent(v int64) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.ActivityPriceCent = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetCommissionRate(v string) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.CommissionRate = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetApplyShopCount(v int64) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.ApplyShopCount = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetTotalSales(v int64) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.TotalSales = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetStock(v int64) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.Stock = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetItemSubType(v string) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.ItemSubType = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetUseTimes(v int64) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.UseTimes = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetApplyCityIds(v []string) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.ApplyCityIds = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetNeedPhone(v bool) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.NeedPhone = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetTbCategory2Id(v string) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.TbCategory2Id = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetTbCategory2Name(v string) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.TbCategory2Name = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetTbCategory3Id(v string) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.TbCategory3Id = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetTbCategory3Name(v string) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.TbCategory3Name = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetBuyLimit(v int64) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.BuyLimit = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetBrand(v AlibabaAlscUnionKbBbtItemQueryBrand) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.Brand = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetTripartiteName(v string) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.TripartiteName = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetTripartiteAppkey(v string) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.TripartiteAppkey = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemDto) SetTripartiteSiteName(v string) *AlibabaAlscUnionKbBbtItemQueryBbtItemDto {
s.TripartiteSiteName = &v
return s
}

+ 68
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest.go Ver fichero

@@ -0,0 +1,68 @@
package domain

type AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest struct {
/*
页码 defalutValue:1 */
PageNumber *int64 `json:"page_number,omitempty" `

/*
排序类型(0-时间倒序,1-佣金比例倒序) defalutValue:0 */
SortType *int64 `json:"sort_type,omitempty" `

/*
会话ID */
SessionId *string `json:"session_id,omitempty" `

/*
二级类目ID */
Category2Id *string `json:"category2_id,omitempty" `

/*
每页数目 defalutValue:20 */
PageSize *int64 `json:"page_size,omitempty" `

/*
城市ID */
CityId *string `json:"city_id,omitempty" `

/*
是否返回需要手机号的商品,false仅返回不需要手机号的品;true全部返回 */
IncludePhone *bool `json:"include_phone,omitempty" `

/*
三方供给标识,","隔开,不为空时include_phone必须为true */
TripartiteAppkeys *string `json:"tripartite_appkeys,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest) SetPageNumber(v int64) *AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest {
s.PageNumber = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest) SetSortType(v int64) *AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest {
s.SortType = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest) SetSessionId(v string) *AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest {
s.SessionId = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest) SetCategory2Id(v string) *AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest {
s.Category2Id = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest) SetPageSize(v int64) *AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest {
s.PageSize = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest) SetCityId(v string) *AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest {
s.CityId = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest) SetIncludePhone(v bool) *AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest {
s.IncludePhone = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest) SetTripartiteAppkeys(v string) *AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest {
s.TripartiteAppkeys = &v
return s
}

+ 20
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryBrand.go Ver fichero

@@ -0,0 +1,20 @@
package domain

type AlibabaAlscUnionKbBbtItemQueryBrand struct {
/*
品牌Id */
BrandId *string `json:"brand_id,omitempty" `

/*
品牌名 */
BrandName *string `json:"brand_name,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemQueryBrand) SetBrandId(v string) *AlibabaAlscUnionKbBbtItemQueryBrand {
s.BrandId = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryBrand) SetBrandName(v string) *AlibabaAlscUnionKbBbtItemQueryBrand {
s.BrandName = &v
return s
}

+ 44
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryPageModel.go Ver fichero

@@ -0,0 +1,44 @@
package domain

type AlibabaAlscUnionKbBbtItemQueryPageModel struct {
/*
会话ID */
SessionId *string `json:"session_id,omitempty" `

/*
分页记录 */
Records *[]AlibabaAlscUnionKbBbtItemQueryBbtItemDto `json:"records,omitempty" `

/*
页码 */
PageNumber *int64 `json:"page_number,omitempty" `

/*
每页数目 */
PageSize *int64 `json:"page_size,omitempty" `

/*
总数 */
Total *int64 `json:"total,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemQueryPageModel) SetSessionId(v string) *AlibabaAlscUnionKbBbtItemQueryPageModel {
s.SessionId = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryPageModel) SetRecords(v []AlibabaAlscUnionKbBbtItemQueryBbtItemDto) *AlibabaAlscUnionKbBbtItemQueryPageModel {
s.Records = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryPageModel) SetPageNumber(v int64) *AlibabaAlscUnionKbBbtItemQueryPageModel {
s.PageNumber = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryPageModel) SetPageSize(v int64) *AlibabaAlscUnionKbBbtItemQueryPageModel {
s.PageSize = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemQueryPageModel) SetTotal(v int64) *AlibabaAlscUnionKbBbtItemQueryPageModel {
s.Total = &v
return s
}

+ 12
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetBbtItemShopDetailRequest.go Ver fichero

@@ -0,0 +1,12 @@
package domain

type AlibabaAlscUnionKbBbtItemStoreDetailGetBbtItemShopDetailRequest struct {
/*
门店ID */
StoreId *string `json:"store_id,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetBbtItemShopDetailRequest) SetStoreId(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetBbtItemShopDetailRequest {
s.StoreId = &v
return s
}

+ 20
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetBbtShopDetailDto.go Ver fichero

@@ -0,0 +1,20 @@
package domain

type AlibabaAlscUnionKbBbtItemStoreDetailGetBbtShopDetailDto struct {
/*
门店基本信息 */
BasicInfo *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo `json:"basic_info,omitempty" `

/*
门店统计信息 */
Statistics *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreStatistics `json:"statistics,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetBbtShopDetailDto) SetBasicInfo(v AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo) *AlibabaAlscUnionKbBbtItemStoreDetailGetBbtShopDetailDto {
s.BasicInfo = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetBbtShopDetailDto) SetStatistics(v AlibabaAlscUnionKbBbtItemStoreDetailGetStoreStatistics) *AlibabaAlscUnionKbBbtItemStoreDetailGetBbtShopDetailDto {
s.Statistics = &v
return s
}

+ 20
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetBrand.go Ver fichero

@@ -0,0 +1,20 @@
package domain

type AlibabaAlscUnionKbBbtItemStoreDetailGetBrand struct {
/*
品牌Id */
BrandId *string `json:"brand_id,omitempty" `

/*
品牌名 */
BrandName *string `json:"brand_name,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetBrand) SetBrandId(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetBrand {
s.BrandId = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetBrand) SetBrandName(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetBrand {
s.BrandName = &v
return s
}

+ 28
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetCategory.go Ver fichero

@@ -0,0 +1,28 @@
package domain

type AlibabaAlscUnionKbBbtItemStoreDetailGetCategory struct {
/*
分类ID */
CategoryId *string `json:"category_id,omitempty" `

/*
分类名称 */
Name *string `json:"name,omitempty" `

/*
父分类ID */
ParentCategoryId *string `json:"parent_category_id,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetCategory) SetCategoryId(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetCategory {
s.CategoryId = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetCategory) SetName(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetCategory {
s.Name = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetCategory) SetParentCategoryId(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetCategory {
s.ParentCategoryId = &v
return s
}

+ 28
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetImageContent.go Ver fichero

@@ -0,0 +1,28 @@
package domain

type AlibabaAlscUnionKbBbtItemStoreDetailGetImageContent struct {
/*
标题 */
Title *string `json:"title,omitempty" `

/*
描述 */
Desc *string `json:"desc,omitempty" `

/*
图片列表 */
Urls *[]string `json:"urls,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetImageContent) SetTitle(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetImageContent {
s.Title = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetImageContent) SetDesc(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetImageContent {
s.Desc = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetImageContent) SetUrls(v []string) *AlibabaAlscUnionKbBbtItemStoreDetailGetImageContent {
s.Urls = &v
return s
}

+ 44
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetLocation.go Ver fichero

@@ -0,0 +1,44 @@
package domain

type AlibabaAlscUnionKbBbtItemStoreDetailGetLocation struct {
/*
地址 */
Address *string `json:"address,omitempty" `

/*
地址备注(如交通信息等) */
AddressMemo *string `json:"address_memo,omitempty" `

/*
所属区域 */
Region *AlibabaAlscUnionKbBbtItemStoreDetailGetRegion `json:"region,omitempty" `

/*
经度 */
Longitude *string `json:"longitude,omitempty" `

/*
纬度 */
Latitude *string `json:"latitude,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetLocation) SetAddress(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetLocation {
s.Address = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetLocation) SetAddressMemo(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetLocation {
s.AddressMemo = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetLocation) SetRegion(v AlibabaAlscUnionKbBbtItemStoreDetailGetRegion) *AlibabaAlscUnionKbBbtItemStoreDetailGetLocation {
s.Region = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetLocation) SetLongitude(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetLocation {
s.Longitude = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetLocation) SetLatitude(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetLocation {
s.Latitude = &v
return s
}

+ 52
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetRegion.go Ver fichero

@@ -0,0 +1,52 @@
package domain

type AlibabaAlscUnionKbBbtItemStoreDetailGetRegion struct {
/*
省份编码 */
ProvinceId *string `json:"province_id,omitempty" `

/*
省份名称 */
ProvinceName *string `json:"province_name,omitempty" `

/*
城市编码 */
CityId *string `json:"city_id,omitempty" `

/*
城市名称 */
CityName *string `json:"city_name,omitempty" `

/*
行政区编码 */
DistrictId *string `json:"district_id,omitempty" `

/*
行政区名称 */
DistrictName *string `json:"district_name,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetRegion) SetProvinceId(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetRegion {
s.ProvinceId = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetRegion) SetProvinceName(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetRegion {
s.ProvinceName = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetRegion) SetCityId(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetRegion {
s.CityId = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetRegion) SetCityName(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetRegion {
s.CityName = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetRegion) SetDistrictId(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetRegion {
s.DistrictId = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetRegion) SetDistrictName(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetRegion {
s.DistrictName = &v
return s
}

+ 76
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo.go Ver fichero

@@ -0,0 +1,76 @@
package domain

type AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo struct {
/*
门店ID */
StoreId *string `json:"store_id,omitempty" `

/*
店名 */
Name *string `json:"name,omitempty" `

/*
cover */
Cover *string `json:"cover,omitempty" `

/*
门店电话 */
Mobiles *[]string `json:"mobiles,omitempty" `

/*
营业信息 */
Business *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusiness `json:"business,omitempty" `

/*
位置信息 */
Location *AlibabaAlscUnionKbBbtItemStoreDetailGetLocation `json:"location,omitempty" `

/*
品牌 */
Brand *AlibabaAlscUnionKbBbtItemStoreDetailGetBrand `json:"brand,omitempty" `

/*
门店所属行业分类 */
Categories *[]AlibabaAlscUnionKbBbtItemStoreDetailGetCategory `json:"categories,omitempty" `

/*
门店资质 */
Qualifications *[]AlibabaAlscUnionKbBbtItemStoreDetailGetImageContent `json:"qualifications,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo) SetStoreId(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo {
s.StoreId = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo) SetName(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo {
s.Name = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo) SetCover(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo {
s.Cover = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo) SetMobiles(v []string) *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo {
s.Mobiles = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo) SetBusiness(v AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusiness) *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo {
s.Business = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo) SetLocation(v AlibabaAlscUnionKbBbtItemStoreDetailGetLocation) *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo {
s.Location = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo) SetBrand(v AlibabaAlscUnionKbBbtItemStoreDetailGetBrand) *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo {
s.Brand = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo) SetCategories(v []AlibabaAlscUnionKbBbtItemStoreDetailGetCategory) *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo {
s.Categories = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo) SetQualifications(v []AlibabaAlscUnionKbBbtItemStoreDetailGetImageContent) *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo {
s.Qualifications = &v
return s
}

+ 36
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusiness.go Ver fichero

@@ -0,0 +1,36 @@
package domain

type AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusiness struct {
/*
营业状态(0-营业中,1-暂停营业,2-休息中,-1-关店) */
BusinessStatus *int64 `json:"business_status,omitempty" `

/*
营业状态描述 */
BusinessDesc *string `json:"business_desc,omitempty" `

/*
营业时间 */
BusinessTime *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusinessTime `json:"business_time,omitempty" `

/*
店铺公告 */
Promotion *string `json:"promotion,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusiness) SetBusinessStatus(v int64) *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusiness {
s.BusinessStatus = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusiness) SetBusinessDesc(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusiness {
s.BusinessDesc = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusiness) SetBusinessTime(v AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusinessTime) *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusiness {
s.BusinessTime = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusiness) SetPromotion(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusiness {
s.Promotion = &v
return s
}

+ 12
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusinessTime.go Ver fichero

@@ -0,0 +1,12 @@
package domain

type AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusinessTime struct {
/*
营业时间文本化信息 */
TimeTexts *[]string `json:"time_texts,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusinessTime) SetTimeTexts(v []string) *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusinessTime {
s.TimeTexts = &v
return s
}

+ 20
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreStatistics.go Ver fichero

@@ -0,0 +1,20 @@
package domain

type AlibabaAlscUnionKbBbtItemStoreDetailGetStoreStatistics struct {
/*
服务评级 */
ServiceRating *string `json:"service_rating,omitempty" `

/*
人均价格 */
AvgPrice *string `json:"avg_price,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreStatistics) SetServiceRating(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreStatistics {
s.ServiceRating = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreStatistics) SetAvgPrice(v string) *AlibabaAlscUnionKbBbtItemStoreDetailGetStoreStatistics {
s.AvgPrice = &v
return s
}

+ 12
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationDto.go Ver fichero

@@ -0,0 +1,12 @@
package domain

type AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationDto struct {
/*
门店ID(city_id不为空则返回当前城市门店,否则返回全部门店) */
StoreId *string `json:"store_id,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationDto) SetStoreId(v string) *AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationDto {
s.StoreId = &v
return s
}

+ 20
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationRequest.go Ver fichero

@@ -0,0 +1,20 @@
package domain

type AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationRequest struct {
/*
商品ID */
ItemId *string `json:"item_id,omitempty" `

/*
城市ID */
CityId *string `json:"city_id,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationRequest) SetItemId(v string) *AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationRequest {
s.ItemId = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationRequest) SetCityId(v string) *AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationRequest {
s.CityId = &v
return s
}

+ 20
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreRelationQueryPageModel.go Ver fichero

@@ -0,0 +1,20 @@
package domain

type AlibabaAlscUnionKbBbtItemStoreRelationQueryPageModel struct {
/*
分页记录 */
Records *[]AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationDto `json:"records,omitempty" `

/*
总数 */
Total *int64 `json:"total,omitempty" `
}

func (s *AlibabaAlscUnionKbBbtItemStoreRelationQueryPageModel) SetRecords(v []AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationDto) *AlibabaAlscUnionKbBbtItemStoreRelationQueryPageModel {
s.Records = &v
return s
}
func (s *AlibabaAlscUnionKbBbtItemStoreRelationQueryPageModel) SetTotal(v int64) *AlibabaAlscUnionKbBbtItemStoreRelationQueryPageModel {
s.Total = &v
return s
}

+ 12
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbCommonEncryptBlowfishModel.go Ver fichero

@@ -0,0 +1,12 @@
package domain

type AlibabaAlscUnionKbCommonEncryptBlowfishModel struct {
/*
待加密字符串 */
Text *string `json:"text,omitempty" `
}

func (s *AlibabaAlscUnionKbCommonEncryptBlowfishModel) SetText(v string) *AlibabaAlscUnionKbCommonEncryptBlowfishModel {
s.Text = &v
return s
}

+ 20
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetBrand.go Ver fichero

@@ -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
}

+ 52
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetContentDetail.go Ver fichero

@@ -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
}

+ 28
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetImageContent.go Ver fichero

@@ -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
}

+ 20
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetImageDto.go Ver fichero

@@ -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
}

+ 20
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetInteger.go Ver fichero

@@ -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
}

+ 28
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemBuyNote.go Ver fichero

@@ -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
}

+ 44
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemContent.go Ver fichero

@@ -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
}

+ 20
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemContentGroup.go Ver fichero

@@ -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
}

+ 28
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemDetail.go Ver fichero

@@ -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
}

+ 20
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemTicket.go Ver fichero

@@ -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
}

+ 220
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetKbItemDetailDto.go Ver fichero

@@ -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
}

+ 28
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetKbItemDetailRequest.go Ver fichero

@@ -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
}

+ 60
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetShopInfo.go Ver fichero

@@ -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
}

+ 28
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetTextContent.go Ver fichero

@@ -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
}

+ 44
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetTicketPeriod.go Ver fichero

@@ -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
}

+ 36
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetTicketTimeRule.go Ver fichero

@@ -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
}

+ 36
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetUseNote.go Ver fichero

@@ -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
}

+ 20
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemPromotionFilterListFilterTableNameDTO.go Ver fichero

@@ -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
}

+ 148
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO.go Ver fichero

@@ -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
}

+ 84
- 0
taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO.go Ver fichero

@@ -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
}

Algunos archivos no se mostraron porque demasiados archivos cambiaron en este cambio

Cargando…
Cancelar
Guardar