From 3bfcd98f4d4de1aa71681c84bc526d480f84d699 Mon Sep 17 00:00:00 2001 From: huangjiajun <582604932@qq.com> Date: Mon, 20 Mar 2023 11:49:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- taobao/elm.go | 91 +++ taobao/elm_test.go | 30 + taobao/topsdk/ability132/Ability132.go | 198 +++++ .../domain/TaobaoTmcGroupsGetTmcGroup.go | 12 + .../TaobaoTmcMessagesConsumeTmcMessage.go | 64 ++ ...aobaoTmcMessagesProduceTmcProduceResult.go | 28 + ...obaoTmcMessagesProduceTmcPublishMessage.go | 44 ++ .../request/TaobaoTmcAuthGetRequest.go | 25 + .../request/TaobaoTmcGroupAddRequest.go | 49 ++ .../request/TaobaoTmcGroupDeleteRequest.go | 49 ++ .../request/TaobaoTmcGroupsGetRequest.go | 47 ++ .../TaobaoTmcMessagesConfirmRequest.go | 49 ++ .../TaobaoTmcMessagesConsumeRequest.go | 35 + .../TaobaoTmcMessagesProduceRequest.go | 30 + .../request/TaobaoTmcTopicGroupAddRequest.go | 39 + .../TaobaoTmcTopicGroupDeleteRequest.go | 47 ++ .../response/TaobaoTmcAuthGetResponse.go | 19 + .../response/TaobaoTmcGroupAddResponse.go | 25 + .../response/TaobaoTmcGroupDeleteResponse.go | 19 + .../response/TaobaoTmcGroupsGetResponse.go | 27 + .../TaobaoTmcMessagesConfirmResponse.go | 19 + .../TaobaoTmcMessagesConsumeResponse.go | 23 + .../TaobaoTmcMessagesProduceResponse.go | 27 + .../TaobaoTmcTopicGroupAddResponse.go | 19 + .../TaobaoTmcTopicGroupDeleteResponse.go | 19 + taobao/topsdk/constants.go | 21 + .../topsdk/defaultability/Defaultability.go | 698 ++++++++++++++++++ ...OfficialactivityGetActivityPromotionDto.go | 60 ++ ...otionOfficialactivityGetActivityRequest.go | 44 ++ ...omotionOfficialactivityGetPromotionLink.go | 84 +++ ...motionStorepromotionGetOverlayCouponDTO.go | 48 ++ ...otionStorepromotionGetPromotionActivity.go | 68 ++ ...PromotionStorepromotionGetPromotionItem.go | 36 + ...PromotionStorepromotionGetPromotionLink.go | 76 ++ ...promotionGetSingleStorePromotionRequest.go | 52 ++ ...otionStorepromotionGetStorePromotionDto.go | 116 +++ ...tionStorepromotionQueryOverlayCouponDTO.go | 48 ++ ...mePromotionStorepromotionQueryPageModel.go | 28 + ...ionStorepromotionQueryPromotionActivity.go | 68 ++ ...omotionStorepromotionQueryPromotionItem.go | 36 + ...omotionStorepromotionQueryPromotionLink.go | 52 ++ ...torepromotionQueryPromotionQueryRequest.go | 148 ++++ ...ionStorepromotionQueryStorePromotionDto.go | 148 ++++ ...UnionKbBbtItemDetailGetBbtItemDetailDto.go | 260 +++++++ ...nKbBbtItemDetailGetBbtItemDetailRequest.go | 20 + ...AlibabaAlscUnionKbBbtItemDetailGetBrand.go | 20 + ...lscUnionKbBbtItemDetailGetContentDetail.go | 60 ++ ...AlscUnionKbBbtItemDetailGetImageContent.go | 28 + ...babaAlscUnionKbBbtItemDetailGetImageDto.go | 20 + ...aAlscUnionKbBbtItemDetailGetItemBuyNote.go | 28 + ...aAlscUnionKbBbtItemDetailGetItemContent.go | 44 ++ ...UnionKbBbtItemDetailGetItemContentGroup.go | 20 + ...baAlscUnionKbBbtItemDetailGetItemDetail.go | 28 + ...baAlscUnionKbBbtItemDetailGetItemTicket.go | 20 + ...lscUnionKbBbtItemDetailGetPurchaseLimit.go | 44 ++ ...babaAlscUnionKbBbtItemDetailGetShopInfo.go | 60 ++ ...aAlscUnionKbBbtItemDetailGetTextContent.go | 28 + ...AlscUnionKbBbtItemDetailGetTicketPeriod.go | 44 ++ ...scUnionKbBbtItemDetailGetTicketTimeRule.go | 36 + ...ibabaAlscUnionKbBbtItemDetailGetUseNote.go | 36 + ...emPromotionFilterListFilterTableNameDTO.go | 20 + ...libabaAlscUnionKbBbtItemQueryBbtItemDto.go | 196 +++++ ...cUnionKbBbtItemQueryBbtItemQueryRequest.go | 68 ++ .../AlibabaAlscUnionKbBbtItemQueryBrand.go | 20 + ...AlibabaAlscUnionKbBbtItemQueryPageModel.go | 44 ++ ...mStoreDetailGetBbtItemShopDetailRequest.go | 12 + ...KbBbtItemStoreDetailGetBbtShopDetailDto.go | 20 + ...baAlscUnionKbBbtItemStoreDetailGetBrand.go | 20 + ...lscUnionKbBbtItemStoreDetailGetCategory.go | 28 + ...nionKbBbtItemStoreDetailGetImageContent.go | 28 + ...lscUnionKbBbtItemStoreDetailGetLocation.go | 44 ++ ...aAlscUnionKbBbtItemStoreDetailGetRegion.go | 52 ++ ...onKbBbtItemStoreDetailGetStoreBasicInfo.go | 76 ++ ...ionKbBbtItemStoreDetailGetStoreBusiness.go | 36 + ...bBbtItemStoreDetailGetStoreBusinessTime.go | 12 + ...nKbBbtItemStoreDetailGetStoreStatistics.go | 20 + ...toreRelationQueryBbtItemShopRelationDto.go | 12 + ...RelationQueryBbtItemShopRelationRequest.go | 20 + ...ionKbBbtItemStoreRelationQueryPageModel.go | 20 + ...baAlscUnionKbCommonEncryptBlowfishModel.go | 12 + .../AlibabaAlscUnionKbItemDetailGetBrand.go | 20 + ...baAlscUnionKbItemDetailGetContentDetail.go | 52 ++ ...abaAlscUnionKbItemDetailGetImageContent.go | 28 + ...AlibabaAlscUnionKbItemDetailGetImageDto.go | 20 + .../AlibabaAlscUnionKbItemDetailGetInteger.go | 20 + ...babaAlscUnionKbItemDetailGetItemBuyNote.go | 28 + ...babaAlscUnionKbItemDetailGetItemContent.go | 44 ++ ...lscUnionKbItemDetailGetItemContentGroup.go | 20 + ...ibabaAlscUnionKbItemDetailGetItemDetail.go | 28 + ...ibabaAlscUnionKbItemDetailGetItemTicket.go | 20 + ...AlscUnionKbItemDetailGetKbItemDetailDto.go | 220 ++++++ ...UnionKbItemDetailGetKbItemDetailRequest.go | 28 + ...AlibabaAlscUnionKbItemDetailGetShopInfo.go | 60 ++ ...babaAlscUnionKbItemDetailGetTextContent.go | 28 + ...abaAlscUnionKbItemDetailGetTicketPeriod.go | 44 ++ ...aAlscUnionKbItemDetailGetTicketTimeRule.go | 36 + .../AlibabaAlscUnionKbItemDetailGetUseNote.go | 36 + ...emPromotionFilterListFilterTableNameDTO.go | 20 + ...cUnionKbItemPromotionKbItemPromotionDTO.go | 148 ++++ ...nionKbItemPromotionShareCreateExtendDTO.go | 84 +++ ...aAlscUnionKbItemQueryKbItemPromotionDTO.go | 84 +++ .../AlibabaAlscUnionKbItemQueryPageModel.go | 44 ++ ...libabaAlscUnionKbItemQueryPromotionLink.go | 20 + ...ibabaAlscUnionKbItemStoreDetailGetBrand.go | 20 + ...baAlscUnionKbItemStoreDetailGetCategory.go | 28 + ...scUnionKbItemStoreDetailGetImageContent.go | 28 + ...emStoreDetailGetKbItemShopDetailRequest.go | 12 + ...nionKbItemStoreDetailGetKbShopDetailDto.go | 20 + ...baAlscUnionKbItemStoreDetailGetLocation.go | 44 ++ ...babaAlscUnionKbItemStoreDetailGetRegion.go | 52 ++ ...UnionKbItemStoreDetailGetStoreBasicInfo.go | 76 ++ ...cUnionKbItemStoreDetailGetStoreBusiness.go | 36 + ...onKbItemStoreDetailGetStoreBusinessTime.go | 12 + ...nionKbItemStoreDetailGetStoreStatistics.go | 20 + ...StoreRelationQueryKbItemShopRelationDto.go | 12 + ...eRelationQueryKbItemShopRelationRequest.go | 28 + ...cUnionKbItemStoreRelationQueryPageModel.go | 20 + .../AlibabaAlscUnionKbOrderCreateOrderDto.go | 84 +++ ...baAlscUnionKbOrderCreateOrderVoucherDto.go | 28 + .../AlibabaAlscUnionKbOrderPayOrderPayDto.go | 20 + ...ibabaAlscUnionKbOrderPayOrderVoucherDto.go | 28 + ...ibabaAlscUnionKbOrderQueryOrderQueryDto.go | 12 + ...cUnionKbOrderQueryOrderVoucherDetailDto.go | 110 +++ ...abaAlscUnionKbOrderQueryOrderVoucherDto.go | 28 + ...abaAlscUnionKbOrderRefundOrderRefundDto.go | 36 + ...UnionKbOrderRefundOrderVoucherDetailDto.go | 20 + ...baAlscUnionKbOrderRefundOrderVoucherDto.go | 20 + ...aAlscUnionKbStoreItemQueryKbShopItemDto.go | 52 ++ ...ibabaAlscUnionKbStoreItemQueryPageModel.go | 20 + ...aAlscUnionKbStoreItemQueryPromotionLink.go | 20 + .../AlibabaAlscUnionKbStoreQueryCategory.go | 20 + .../AlibabaAlscUnionKbStoreQueryInteger.go | 52 ++ .../AlibabaAlscUnionKbStoreQueryLocation.go | 28 + .../AlibabaAlscUnionKbStoreQueryPageModel.go | 44 ++ ...bcpaOrderDetailsGetOrderDetailReportDto.go | 244 ++++++ ...unishOrderGetPunishOrderDetailReportDTO.go | 100 +++ ...efundOrderGetRefundOrderDetailReportDTO.go | 116 +++ ...cpxPositiveOrderGetOrderDetailReportDTO.go | 436 +++++++++++ ...unishOrderGetPunishOrderDetailReportDTO.go | 148 ++++ ...efundOrderGetRefundOrderDetailReportDTO.go | 196 +++++ ...AlibabaAlscUnionMediaZoneAddZoneInfoDTO.go | 20 + ...AlibabaAlscUnionMediaZoneGetZoneInfoDTO.go | 20 + .../domain/TaobaoTmcUserGetTmcUser.go | 72 ++ ...lemePromotionOfficialactivityGetRequest.go | 30 + ...nElemePromotionStorepromotionGetRequest.go | 30 + ...lemePromotionStorepromotionQueryRequest.go | 30 + ...ibabaAlscUnionKbBbtItemDetailGetRequest.go | 30 + ...nionKbBbtItemPromotionFilterListRequest.go | 45 ++ .../AlibabaAlscUnionKbBbtItemQueryRequest.go | 30 + ...AlscUnionKbBbtItemStoreDetailGetRequest.go | 30 + ...UnionKbBbtItemStoreRelationQueryRequest.go | 30 + .../AlibabaAlscUnionKbCommonEncryptRequest.go | 30 + .../AlibabaAlscUnionKbItemDetailGetRequest.go | 30 + ...scUnionKbItemPromotionFilterListRequest.go | 35 + .../AlibabaAlscUnionKbItemPromotionRequest.go | 135 ++++ ...cUnionKbItemPromotionShareCreateRequest.go | 115 +++ .../AlibabaAlscUnionKbItemQueryRequest.go | 135 ++++ ...abaAlscUnionKbItemStoreDetailGetRequest.go | 30 + ...lscUnionKbItemStoreRelationQueryRequest.go | 30 + .../AlibabaAlscUnionKbOrderCreateRequest.go | 30 + .../AlibabaAlscUnionKbOrderPayRequest.go | 30 + .../AlibabaAlscUnionKbOrderQueryRequest.go | 30 + .../AlibabaAlscUnionKbOrderRefundRequest.go | 30 + ...AlibabaAlscUnionKbStoreItemQueryRequest.go | 55 ++ .../AlibabaAlscUnionKbStoreQueryRequest.go | 135 ++++ ...abaAlscUnionKbcpaOrderDetailsGetRequest.go | 95 +++ ...babaAlscUnionKbcpaPunishOrderGetRequest.go | 65 ++ ...babaAlscUnionKbcpaRefundOrderGetRequest.go | 75 ++ ...baAlscUnionKbcpxPositiveOrderGetRequest.go | 135 ++++ ...babaAlscUnionKbcpxPunishOrderGetRequest.go | 105 +++ ...babaAlscUnionKbcpxRefundOrderGetRequest.go | 105 +++ .../AlibabaAlscUnionMediaZoneAddRequest.go | 35 + .../AlibabaAlscUnionMediaZoneGetRequest.go | 35 + .../request/TaobaoTmcMessageProduceRequest.go | 135 ++++ .../request/TaobaoTmcUserCancelRequest.go | 35 + .../request/TaobaoTmcUserGetRequest.go | 49 ++ .../request/TaobaoTmcUserPermitRequest.go | 29 + ...emePromotionOfficialactivityGetResponse.go | 29 + ...ElemePromotionStorepromotionGetResponse.go | 29 + ...emePromotionStorepromotionQueryResponse.go | 31 + ...babaAlscUnionKbBbtItemDetailGetResponse.go | 35 + ...ionKbBbtItemPromotionFilterListResponse.go | 31 + .../AlibabaAlscUnionKbBbtItemQueryResponse.go | 35 + ...lscUnionKbBbtItemStoreDetailGetResponse.go | 31 + ...nionKbBbtItemStoreRelationQueryResponse.go | 31 + ...AlibabaAlscUnionKbCommonEncryptResponse.go | 29 + ...AlibabaAlscUnionKbItemDetailGetResponse.go | 31 + ...cUnionKbItemPromotionFilterListResponse.go | 31 + ...AlibabaAlscUnionKbItemPromotionResponse.go | 39 + ...UnionKbItemPromotionShareCreateResponse.go | 35 + .../AlibabaAlscUnionKbItemQueryResponse.go | 35 + ...baAlscUnionKbItemStoreDetailGetResponse.go | 31 + ...scUnionKbItemStoreRelationQueryResponse.go | 31 + .../AlibabaAlscUnionKbOrderCreateResponse.go | 31 + .../AlibabaAlscUnionKbOrderPayResponse.go | 31 + .../AlibabaAlscUnionKbOrderQueryResponse.go | 31 + .../AlibabaAlscUnionKbOrderRefundResponse.go | 31 + ...libabaAlscUnionKbStoreItemQueryResponse.go | 35 + .../AlibabaAlscUnionKbStoreQueryResponse.go | 35 + ...baAlscUnionKbcpaOrderDetailsGetResponse.go | 39 + ...abaAlscUnionKbcpaPunishOrderGetResponse.go | 39 + ...abaAlscUnionKbcpaRefundOrderGetResponse.go | 35 + ...aAlscUnionKbcpxPositiveOrderGetResponse.go | 39 + ...abaAlscUnionKbcpxPunishOrderGetResponse.go | 39 + ...abaAlscUnionKbcpxRefundOrderGetResponse.go | 39 + .../AlibabaAlscUnionMediaZoneAddResponse.go | 35 + .../AlibabaAlscUnionMediaZoneGetResponse.go | 39 + .../TaobaoTmcMessageProduceResponse.go | 29 + .../response/TaobaoTmcUserCancelResponse.go | 21 + .../response/TaobaoTmcUserGetResponse.go | 23 + .../response/TaobaoTmcUserPermitResponse.go | 21 + taobao/topsdk/topclient.go | 190 +++++ tik_tok/svc_tik_tok_team.go | 43 ++ tik_tok/tik_tok_kol.go | 53 ++ tik_tok/tik_tok_test.go | 2 +- utils/FileItem.go | 20 + utils/TopApiRequestError.go | 34 + utils/md5.go | 12 + utils/util.go | 114 +++ 219 files changed, 11511 insertions(+), 1 deletion(-) create mode 100644 taobao/elm.go create mode 100644 taobao/elm_test.go create mode 100644 taobao/topsdk/ability132/Ability132.go create mode 100644 taobao/topsdk/ability132/domain/TaobaoTmcGroupsGetTmcGroup.go create mode 100644 taobao/topsdk/ability132/domain/TaobaoTmcMessagesConsumeTmcMessage.go create mode 100644 taobao/topsdk/ability132/domain/TaobaoTmcMessagesProduceTmcProduceResult.go create mode 100644 taobao/topsdk/ability132/domain/TaobaoTmcMessagesProduceTmcPublishMessage.go create mode 100644 taobao/topsdk/ability132/request/TaobaoTmcAuthGetRequest.go create mode 100644 taobao/topsdk/ability132/request/TaobaoTmcGroupAddRequest.go create mode 100644 taobao/topsdk/ability132/request/TaobaoTmcGroupDeleteRequest.go create mode 100644 taobao/topsdk/ability132/request/TaobaoTmcGroupsGetRequest.go create mode 100644 taobao/topsdk/ability132/request/TaobaoTmcMessagesConfirmRequest.go create mode 100644 taobao/topsdk/ability132/request/TaobaoTmcMessagesConsumeRequest.go create mode 100644 taobao/topsdk/ability132/request/TaobaoTmcMessagesProduceRequest.go create mode 100644 taobao/topsdk/ability132/request/TaobaoTmcTopicGroupAddRequest.go create mode 100644 taobao/topsdk/ability132/request/TaobaoTmcTopicGroupDeleteRequest.go create mode 100644 taobao/topsdk/ability132/response/TaobaoTmcAuthGetResponse.go create mode 100644 taobao/topsdk/ability132/response/TaobaoTmcGroupAddResponse.go create mode 100644 taobao/topsdk/ability132/response/TaobaoTmcGroupDeleteResponse.go create mode 100644 taobao/topsdk/ability132/response/TaobaoTmcGroupsGetResponse.go create mode 100644 taobao/topsdk/ability132/response/TaobaoTmcMessagesConfirmResponse.go create mode 100644 taobao/topsdk/ability132/response/TaobaoTmcMessagesConsumeResponse.go create mode 100644 taobao/topsdk/ability132/response/TaobaoTmcMessagesProduceResponse.go create mode 100644 taobao/topsdk/ability132/response/TaobaoTmcTopicGroupAddResponse.go create mode 100644 taobao/topsdk/ability132/response/TaobaoTmcTopicGroupDeleteResponse.go create mode 100644 taobao/topsdk/constants.go create mode 100644 taobao/topsdk/defaultability/Defaultability.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetPromotionItem.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPageModel.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionItem.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailRequest.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetBrand.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetContentDetail.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetImageContent.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetImageDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemBuyNote.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemContent.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemContentGroup.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemDetail.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemTicket.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetShopInfo.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetTextContent.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetTicketTimeRule.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetUseNote.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemPromotionFilterListFilterTableNameDTO.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryBbtItemDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryBrand.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryPageModel.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetBbtItemShopDetailRequest.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetBbtShopDetailDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetBrand.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetCategory.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetImageContent.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetLocation.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetRegion.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusiness.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusinessTime.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreStatistics.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationRequest.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreRelationQueryPageModel.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbCommonEncryptBlowfishModel.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetBrand.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetContentDetail.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetImageContent.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetImageDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetInteger.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemBuyNote.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemContent.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemContentGroup.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemDetail.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemTicket.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetKbItemDetailDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetKbItemDetailRequest.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetShopInfo.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetTextContent.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetTicketPeriod.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetTicketTimeRule.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetUseNote.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemPromotionFilterListFilterTableNameDTO.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemQueryKbItemPromotionDTO.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemQueryPageModel.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemQueryPromotionLink.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetBrand.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetCategory.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetImageContent.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetKbItemShopDetailRequest.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetKbShopDetailDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetLocation.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetRegion.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetStoreBusiness.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetStoreBusinessTime.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetStoreStatistics.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationRequest.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreRelationQueryPageModel.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderCreateOrderDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderCreateOrderVoucherDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderPayOrderPayDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderPayOrderVoucherDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderQueryOrderQueryDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderQueryOrderVoucherDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderRefundOrderRefundDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderRefundOrderVoucherDetailDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderRefundOrderVoucherDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreItemQueryKbShopItemDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreItemQueryPageModel.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreItemQueryPromotionLink.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreQueryCategory.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreQueryInteger.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreQueryLocation.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreQueryPageModel.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionMediaZoneAddZoneInfoDTO.go create mode 100644 taobao/topsdk/defaultability/domain/AlibabaAlscUnionMediaZoneGetZoneInfoDTO.go create mode 100644 taobao/topsdk/defaultability/domain/TaobaoTmcUserGetTmcUser.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionElemePromotionOfficialactivityGetRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionElemePromotionStorepromotionGetRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionElemePromotionStorepromotionQueryRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemDetailGetRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemPromotionFilterListRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemQueryRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemStoreDetailGetRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemStoreRelationQueryRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbCommonEncryptRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemDetailGetRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemPromotionFilterListRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemPromotionRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemPromotionShareCreateRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemQueryRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemStoreDetailGetRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemStoreRelationQueryRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbOrderCreateRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbOrderPayRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbOrderQueryRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbOrderRefundRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbStoreItemQueryRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbStoreQueryRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpaOrderDetailsGetRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpaPunishOrderGetRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpaRefundOrderGetRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpxPositiveOrderGetRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpxPunishOrderGetRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpxRefundOrderGetRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionMediaZoneAddRequest.go create mode 100644 taobao/topsdk/defaultability/request/AlibabaAlscUnionMediaZoneGetRequest.go create mode 100644 taobao/topsdk/defaultability/request/TaobaoTmcMessageProduceRequest.go create mode 100644 taobao/topsdk/defaultability/request/TaobaoTmcUserCancelRequest.go create mode 100644 taobao/topsdk/defaultability/request/TaobaoTmcUserGetRequest.go create mode 100644 taobao/topsdk/defaultability/request/TaobaoTmcUserPermitRequest.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionElemePromotionOfficialactivityGetResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionElemePromotionStorepromotionGetResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionElemePromotionStorepromotionQueryResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemDetailGetResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemPromotionFilterListResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemQueryResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemStoreDetailGetResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemStoreRelationQueryResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbCommonEncryptResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemDetailGetResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemPromotionFilterListResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemPromotionResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemPromotionShareCreateResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemQueryResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemStoreDetailGetResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemStoreRelationQueryResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbOrderCreateResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbOrderPayResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbOrderQueryResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbOrderRefundResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbStoreItemQueryResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbStoreQueryResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpaOrderDetailsGetResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpaPunishOrderGetResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpaRefundOrderGetResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpxPositiveOrderGetResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpxPunishOrderGetResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpxRefundOrderGetResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionMediaZoneAddResponse.go create mode 100644 taobao/topsdk/defaultability/response/AlibabaAlscUnionMediaZoneGetResponse.go create mode 100644 taobao/topsdk/defaultability/response/TaobaoTmcMessageProduceResponse.go create mode 100644 taobao/topsdk/defaultability/response/TaobaoTmcUserCancelResponse.go create mode 100644 taobao/topsdk/defaultability/response/TaobaoTmcUserGetResponse.go create mode 100644 taobao/topsdk/defaultability/response/TaobaoTmcUserPermitResponse.go create mode 100644 taobao/topsdk/topclient.go create mode 100644 tik_tok/tik_tok_kol.go create mode 100644 utils/FileItem.go create mode 100644 utils/TopApiRequestError.go create mode 100644 utils/md5.go create mode 100644 utils/util.go diff --git a/taobao/elm.go b/taobao/elm.go new file mode 100644 index 0000000..e61a9db --- /dev/null +++ b/taobao/elm.go @@ -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 +} diff --git a/taobao/elm_test.go b/taobao/elm_test.go new file mode 100644 index 0000000..4db44c5 --- /dev/null +++ b/taobao/elm_test.go @@ -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) +} diff --git a/taobao/topsdk/ability132/Ability132.go b/taobao/topsdk/ability132/Ability132.go new file mode 100644 index 0000000..c1985ad --- /dev/null +++ b/taobao/topsdk/ability132/Ability132.go @@ -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 +} diff --git a/taobao/topsdk/ability132/domain/TaobaoTmcGroupsGetTmcGroup.go b/taobao/topsdk/ability132/domain/TaobaoTmcGroupsGetTmcGroup.go new file mode 100644 index 0000000..2b128eb --- /dev/null +++ b/taobao/topsdk/ability132/domain/TaobaoTmcGroupsGetTmcGroup.go @@ -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 +} diff --git a/taobao/topsdk/ability132/domain/TaobaoTmcMessagesConsumeTmcMessage.go b/taobao/topsdk/ability132/domain/TaobaoTmcMessagesConsumeTmcMessage.go new file mode 100644 index 0000000..328d206 --- /dev/null +++ b/taobao/topsdk/ability132/domain/TaobaoTmcMessagesConsumeTmcMessage.go @@ -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 +} diff --git a/taobao/topsdk/ability132/domain/TaobaoTmcMessagesProduceTmcProduceResult.go b/taobao/topsdk/ability132/domain/TaobaoTmcMessagesProduceTmcProduceResult.go new file mode 100644 index 0000000..de479f2 --- /dev/null +++ b/taobao/topsdk/ability132/domain/TaobaoTmcMessagesProduceTmcProduceResult.go @@ -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 +} diff --git a/taobao/topsdk/ability132/domain/TaobaoTmcMessagesProduceTmcPublishMessage.go b/taobao/topsdk/ability132/domain/TaobaoTmcMessagesProduceTmcPublishMessage.go new file mode 100644 index 0000000..4c3a94f --- /dev/null +++ b/taobao/topsdk/ability132/domain/TaobaoTmcMessagesProduceTmcPublishMessage.go @@ -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 +} diff --git a/taobao/topsdk/ability132/request/TaobaoTmcAuthGetRequest.go b/taobao/topsdk/ability132/request/TaobaoTmcAuthGetRequest.go new file mode 100644 index 0000000..5c871b4 --- /dev/null +++ b/taobao/topsdk/ability132/request/TaobaoTmcAuthGetRequest.go @@ -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 +} diff --git a/taobao/topsdk/ability132/request/TaobaoTmcGroupAddRequest.go b/taobao/topsdk/ability132/request/TaobaoTmcGroupAddRequest.go new file mode 100644 index 0000000..e60a2d7 --- /dev/null +++ b/taobao/topsdk/ability132/request/TaobaoTmcGroupAddRequest.go @@ -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 +} diff --git a/taobao/topsdk/ability132/request/TaobaoTmcGroupDeleteRequest.go b/taobao/topsdk/ability132/request/TaobaoTmcGroupDeleteRequest.go new file mode 100644 index 0000000..625e754 --- /dev/null +++ b/taobao/topsdk/ability132/request/TaobaoTmcGroupDeleteRequest.go @@ -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 +} diff --git a/taobao/topsdk/ability132/request/TaobaoTmcGroupsGetRequest.go b/taobao/topsdk/ability132/request/TaobaoTmcGroupsGetRequest.go new file mode 100644 index 0000000..4ec84d4 --- /dev/null +++ b/taobao/topsdk/ability132/request/TaobaoTmcGroupsGetRequest.go @@ -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 +} diff --git a/taobao/topsdk/ability132/request/TaobaoTmcMessagesConfirmRequest.go b/taobao/topsdk/ability132/request/TaobaoTmcMessagesConfirmRequest.go new file mode 100644 index 0000000..0e80fd6 --- /dev/null +++ b/taobao/topsdk/ability132/request/TaobaoTmcMessagesConfirmRequest.go @@ -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 +} diff --git a/taobao/topsdk/ability132/request/TaobaoTmcMessagesConsumeRequest.go b/taobao/topsdk/ability132/request/TaobaoTmcMessagesConsumeRequest.go new file mode 100644 index 0000000..643b073 --- /dev/null +++ b/taobao/topsdk/ability132/request/TaobaoTmcMessagesConsumeRequest.go @@ -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 +} diff --git a/taobao/topsdk/ability132/request/TaobaoTmcMessagesProduceRequest.go b/taobao/topsdk/ability132/request/TaobaoTmcMessagesProduceRequest.go new file mode 100644 index 0000000..08b7375 --- /dev/null +++ b/taobao/topsdk/ability132/request/TaobaoTmcMessagesProduceRequest.go @@ -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 +} diff --git a/taobao/topsdk/ability132/request/TaobaoTmcTopicGroupAddRequest.go b/taobao/topsdk/ability132/request/TaobaoTmcTopicGroupAddRequest.go new file mode 100644 index 0000000..76d89d2 --- /dev/null +++ b/taobao/topsdk/ability132/request/TaobaoTmcTopicGroupAddRequest.go @@ -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 +} diff --git a/taobao/topsdk/ability132/request/TaobaoTmcTopicGroupDeleteRequest.go b/taobao/topsdk/ability132/request/TaobaoTmcTopicGroupDeleteRequest.go new file mode 100644 index 0000000..7221a97 --- /dev/null +++ b/taobao/topsdk/ability132/request/TaobaoTmcTopicGroupDeleteRequest.go @@ -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 +} diff --git a/taobao/topsdk/ability132/response/TaobaoTmcAuthGetResponse.go b/taobao/topsdk/ability132/response/TaobaoTmcAuthGetResponse.go new file mode 100644 index 0000000..08684a4 --- /dev/null +++ b/taobao/topsdk/ability132/response/TaobaoTmcAuthGetResponse.go @@ -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" ` +} diff --git a/taobao/topsdk/ability132/response/TaobaoTmcGroupAddResponse.go b/taobao/topsdk/ability132/response/TaobaoTmcGroupAddResponse.go new file mode 100644 index 0000000..984e6a2 --- /dev/null +++ b/taobao/topsdk/ability132/response/TaobaoTmcGroupAddResponse.go @@ -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" ` +} diff --git a/taobao/topsdk/ability132/response/TaobaoTmcGroupDeleteResponse.go b/taobao/topsdk/ability132/response/TaobaoTmcGroupDeleteResponse.go new file mode 100644 index 0000000..ebb621d --- /dev/null +++ b/taobao/topsdk/ability132/response/TaobaoTmcGroupDeleteResponse.go @@ -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" ` +} diff --git a/taobao/topsdk/ability132/response/TaobaoTmcGroupsGetResponse.go b/taobao/topsdk/ability132/response/TaobaoTmcGroupsGetResponse.go new file mode 100644 index 0000000..a32a0d0 --- /dev/null +++ b/taobao/topsdk/ability132/response/TaobaoTmcGroupsGetResponse.go @@ -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" ` +} diff --git a/taobao/topsdk/ability132/response/TaobaoTmcMessagesConfirmResponse.go b/taobao/topsdk/ability132/response/TaobaoTmcMessagesConfirmResponse.go new file mode 100644 index 0000000..39cb718 --- /dev/null +++ b/taobao/topsdk/ability132/response/TaobaoTmcMessagesConfirmResponse.go @@ -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" ` +} diff --git a/taobao/topsdk/ability132/response/TaobaoTmcMessagesConsumeResponse.go b/taobao/topsdk/ability132/response/TaobaoTmcMessagesConsumeResponse.go new file mode 100644 index 0000000..430bbff --- /dev/null +++ b/taobao/topsdk/ability132/response/TaobaoTmcMessagesConsumeResponse.go @@ -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" ` +} diff --git a/taobao/topsdk/ability132/response/TaobaoTmcMessagesProduceResponse.go b/taobao/topsdk/ability132/response/TaobaoTmcMessagesProduceResponse.go new file mode 100644 index 0000000..63ee610 --- /dev/null +++ b/taobao/topsdk/ability132/response/TaobaoTmcMessagesProduceResponse.go @@ -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" ` +} diff --git a/taobao/topsdk/ability132/response/TaobaoTmcTopicGroupAddResponse.go b/taobao/topsdk/ability132/response/TaobaoTmcTopicGroupAddResponse.go new file mode 100644 index 0000000..d93d9c5 --- /dev/null +++ b/taobao/topsdk/ability132/response/TaobaoTmcTopicGroupAddResponse.go @@ -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" ` +} diff --git a/taobao/topsdk/ability132/response/TaobaoTmcTopicGroupDeleteResponse.go b/taobao/topsdk/ability132/response/TaobaoTmcTopicGroupDeleteResponse.go new file mode 100644 index 0000000..6ae917c --- /dev/null +++ b/taobao/topsdk/ability132/response/TaobaoTmcTopicGroupDeleteResponse.go @@ -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" ` +} diff --git a/taobao/topsdk/constants.go b/taobao/topsdk/constants.go new file mode 100644 index 0000000..fad334d --- /dev/null +++ b/taobao/topsdk/constants.go @@ -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" +) diff --git a/taobao/topsdk/defaultability/Defaultability.go b/taobao/topsdk/defaultability/Defaultability.go new file mode 100644 index 0000000..ff042a8 --- /dev/null +++ b/taobao/topsdk/defaultability/Defaultability.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto.go new file mode 100644 index 0000000..355a040 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest.go new file mode 100644 index 0000000..0103e05 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink.go new file mode 100644 index 0000000..3cde884 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionOfficialactivityGetPromotionLink.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO.go new file mode 100644 index 0000000..05e5bfb --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetOverlayCouponDTO.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity.go new file mode 100644 index 0000000..1e3e44f --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetPromotionActivity.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetPromotionItem.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetPromotionItem.go new file mode 100644 index 0000000..e0c8b6b --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetPromotionItem.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink.go new file mode 100644 index 0000000..3ac36c9 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetPromotionLink.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest.go new file mode 100644 index 0000000..d9bac18 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto.go new file mode 100644 index 0000000..9cc68c6 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO.go new file mode 100644 index 0000000..9c501b3 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryOverlayCouponDTO.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPageModel.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPageModel.go new file mode 100644 index 0000000..b699694 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPageModel.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity.go new file mode 100644 index 0000000..9ae05a2 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionActivity.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionItem.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionItem.go new file mode 100644 index 0000000..747d112 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionItem.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink.go new file mode 100644 index 0000000..84091a3 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionLink.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest.go new file mode 100644 index 0000000..be54503 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto.go new file mode 100644 index 0000000..d0a4784 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionElemePromotionStorepromotionQueryStorePromotionDto.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto.go new file mode 100644 index 0000000..7d8e5d2 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailRequest.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailRequest.go new file mode 100644 index 0000000..60349f6 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailRequest.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetBrand.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetBrand.go new file mode 100644 index 0000000..923ca47 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetBrand.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetContentDetail.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetContentDetail.go new file mode 100644 index 0000000..4d9f478 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetContentDetail.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetImageContent.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetImageContent.go new file mode 100644 index 0000000..0a5d475 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetImageContent.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetImageDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetImageDto.go new file mode 100644 index 0000000..d4e79f5 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetImageDto.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemBuyNote.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemBuyNote.go new file mode 100644 index 0000000..2f014b6 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemBuyNote.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemContent.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemContent.go new file mode 100644 index 0000000..e395c61 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemContent.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemContentGroup.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemContentGroup.go new file mode 100644 index 0000000..46ffa29 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemContentGroup.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemDetail.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemDetail.go new file mode 100644 index 0000000..fa11c93 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemDetail.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemTicket.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemTicket.go new file mode 100644 index 0000000..835652c --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetItemTicket.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit.go new file mode 100644 index 0000000..9c5d32a --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetPurchaseLimit.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetShopInfo.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetShopInfo.go new file mode 100644 index 0000000..f344fe9 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetShopInfo.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetTextContent.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetTextContent.go new file mode 100644 index 0000000..1511e17 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetTextContent.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod.go new file mode 100644 index 0000000..a809af4 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetTicketPeriod.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetTicketTimeRule.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetTicketTimeRule.go new file mode 100644 index 0000000..d793f2b --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetTicketTimeRule.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetUseNote.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetUseNote.go new file mode 100644 index 0000000..cfdde4b --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemDetailGetUseNote.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemPromotionFilterListFilterTableNameDTO.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemPromotionFilterListFilterTableNameDTO.go new file mode 100644 index 0000000..3784371 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemPromotionFilterListFilterTableNameDTO.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryBbtItemDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryBbtItemDto.go new file mode 100644 index 0000000..3604bd9 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryBbtItemDto.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest.go new file mode 100644 index 0000000..1ea9fa3 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryBrand.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryBrand.go new file mode 100644 index 0000000..c2be166 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryBrand.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryPageModel.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryPageModel.go new file mode 100644 index 0000000..f407fe7 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemQueryPageModel.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetBbtItemShopDetailRequest.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetBbtItemShopDetailRequest.go new file mode 100644 index 0000000..826559b --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetBbtItemShopDetailRequest.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetBbtShopDetailDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetBbtShopDetailDto.go new file mode 100644 index 0000000..aac6f1d --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetBbtShopDetailDto.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetBrand.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetBrand.go new file mode 100644 index 0000000..c894e15 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetBrand.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetCategory.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetCategory.go new file mode 100644 index 0000000..c4dd92c --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetCategory.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetImageContent.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetImageContent.go new file mode 100644 index 0000000..172defd --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetImageContent.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetLocation.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetLocation.go new file mode 100644 index 0000000..2ff7cfa --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetLocation.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetRegion.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetRegion.go new file mode 100644 index 0000000..29f244c --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetRegion.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo.go new file mode 100644 index 0000000..91e518b --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBasicInfo.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusiness.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusiness.go new file mode 100644 index 0000000..6351d92 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusiness.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusinessTime.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusinessTime.go new file mode 100644 index 0000000..ebf82fc --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreBusinessTime.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreStatistics.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreStatistics.go new file mode 100644 index 0000000..1b3eb5a --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreDetailGetStoreStatistics.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationDto.go new file mode 100644 index 0000000..941fcc6 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationDto.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationRequest.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationRequest.go new file mode 100644 index 0000000..508e949 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationRequest.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreRelationQueryPageModel.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreRelationQueryPageModel.go new file mode 100644 index 0000000..d4fc553 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbBbtItemStoreRelationQueryPageModel.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbCommonEncryptBlowfishModel.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbCommonEncryptBlowfishModel.go new file mode 100644 index 0000000..2ac8900 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbCommonEncryptBlowfishModel.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetBrand.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetBrand.go new file mode 100644 index 0000000..bfd2bc4 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetBrand.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetContentDetail.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetContentDetail.go new file mode 100644 index 0000000..85d12e1 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetContentDetail.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetImageContent.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetImageContent.go new file mode 100644 index 0000000..7a355dc --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetImageContent.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetImageDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetImageDto.go new file mode 100644 index 0000000..84206c2 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetImageDto.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetInteger.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetInteger.go new file mode 100644 index 0000000..826324f --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetInteger.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemBuyNote.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemBuyNote.go new file mode 100644 index 0000000..c1aef63 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemBuyNote.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemContent.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemContent.go new file mode 100644 index 0000000..d50ac9c --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemContent.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemContentGroup.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemContentGroup.go new file mode 100644 index 0000000..89681ea --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemContentGroup.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemDetail.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemDetail.go new file mode 100644 index 0000000..1de245b --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemDetail.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemTicket.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemTicket.go new file mode 100644 index 0000000..19be521 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetItemTicket.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetKbItemDetailDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetKbItemDetailDto.go new file mode 100644 index 0000000..7051a4f --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetKbItemDetailDto.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetKbItemDetailRequest.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetKbItemDetailRequest.go new file mode 100644 index 0000000..0ffd3a3 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetKbItemDetailRequest.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetShopInfo.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetShopInfo.go new file mode 100644 index 0000000..9f04a6d --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetShopInfo.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetTextContent.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetTextContent.go new file mode 100644 index 0000000..a75a9c1 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetTextContent.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetTicketPeriod.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetTicketPeriod.go new file mode 100644 index 0000000..36e874d --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetTicketPeriod.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetTicketTimeRule.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetTicketTimeRule.go new file mode 100644 index 0000000..3073f57 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetTicketTimeRule.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetUseNote.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetUseNote.go new file mode 100644 index 0000000..545e5c3 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemDetailGetUseNote.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemPromotionFilterListFilterTableNameDTO.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemPromotionFilterListFilterTableNameDTO.go new file mode 100644 index 0000000..746f47f --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemPromotionFilterListFilterTableNameDTO.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO.go new file mode 100644 index 0000000..b214760 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO.go new file mode 100644 index 0000000..0b2297b --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO.go @@ -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 +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemQueryKbItemPromotionDTO.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemQueryKbItemPromotionDTO.go new file mode 100644 index 0000000..961f1ce --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemQueryKbItemPromotionDTO.go @@ -0,0 +1,84 @@ +package domain + +type AlibabaAlscUnionKbItemQueryKbItemPromotionDTO struct { + /* + 商品ID */ + ItemId *string `json:"item_id,omitempty" ` + + /* + 标题 */ + Title *string `json:"title,omitempty" ` + + /* + 商品图 */ + MainPicture *string `json:"main_picture,omitempty" ` + + /* + 原价(分) */ + OriginalPriceCent *int64 `json:"original_price_cent,omitempty" ` + + /* + 活动价(分) */ + ActivityPriceCent *int64 `json:"activity_price_cent,omitempty" ` + + /* + 券后价(分) */ + PriceWithCouponCent *int64 `json:"price_with_coupon_cent,omitempty" ` + + /* + 券价格(分) */ + CouponPriceCent *int64 `json:"coupon_price_cent,omitempty" ` + + /* + 九十天销量 */ + NinetySales *int64 `json:"ninety_sales,omitempty" ` + + /* + 总销量 */ + TotalSales *int64 `json:"total_sales,omitempty" ` + + /* + 推广链接 */ + Link *AlibabaAlscUnionKbItemQueryPromotionLink `json:"link,omitempty" ` +} + +func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetItemId(v string) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO { + s.ItemId = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetTitle(v string) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO { + s.Title = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetMainPicture(v string) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO { + s.MainPicture = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetOriginalPriceCent(v int64) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO { + s.OriginalPriceCent = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetActivityPriceCent(v int64) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO { + s.ActivityPriceCent = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetPriceWithCouponCent(v int64) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO { + s.PriceWithCouponCent = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetCouponPriceCent(v int64) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO { + s.CouponPriceCent = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetNinetySales(v int64) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO { + s.NinetySales = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetTotalSales(v int64) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO { + s.TotalSales = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) SetLink(v AlibabaAlscUnionKbItemQueryPromotionLink) *AlibabaAlscUnionKbItemQueryKbItemPromotionDTO { + s.Link = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemQueryPageModel.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemQueryPageModel.go new file mode 100644 index 0000000..464ec69 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemQueryPageModel.go @@ -0,0 +1,44 @@ +package domain + +type AlibabaAlscUnionKbItemQueryPageModel struct { + /* + 会话ID(下次请求作为请求参数,用于标记分页会话自动翻页) */ + SessionId *string `json:"session_id,omitempty" ` + + /* + 页码 */ + PageNumber *int64 `json:"page_number,omitempty" ` + + /* + 每页数目 */ + PageSize *int64 `json:"page_size,omitempty" ` + + /* + 总数 */ + Total *int64 `json:"total,omitempty" ` + + /* + 分页记录 */ + Records *[]AlibabaAlscUnionKbItemQueryKbItemPromotionDTO `json:"records,omitempty" ` +} + +func (s *AlibabaAlscUnionKbItemQueryPageModel) SetSessionId(v string) *AlibabaAlscUnionKbItemQueryPageModel { + s.SessionId = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryPageModel) SetPageNumber(v int64) *AlibabaAlscUnionKbItemQueryPageModel { + s.PageNumber = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryPageModel) SetPageSize(v int64) *AlibabaAlscUnionKbItemQueryPageModel { + s.PageSize = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryPageModel) SetTotal(v int64) *AlibabaAlscUnionKbItemQueryPageModel { + s.Total = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryPageModel) SetRecords(v []AlibabaAlscUnionKbItemQueryKbItemPromotionDTO) *AlibabaAlscUnionKbItemQueryPageModel { + s.Records = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemQueryPromotionLink.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemQueryPromotionLink.go new file mode 100644 index 0000000..8f0f8ab --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemQueryPromotionLink.go @@ -0,0 +1,20 @@ +package domain + +type AlibabaAlscUnionKbItemQueryPromotionLink struct { + /* + 支付宝schema */ + AlipaySchemeUrl *string `json:"alipay_scheme_url,omitempty" ` + + /* + 支付宝小程序h5 url */ + AlipayH5Url *string `json:"alipay_h5_url,omitempty" ` +} + +func (s *AlibabaAlscUnionKbItemQueryPromotionLink) SetAlipaySchemeUrl(v string) *AlibabaAlscUnionKbItemQueryPromotionLink { + s.AlipaySchemeUrl = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryPromotionLink) SetAlipayH5Url(v string) *AlibabaAlscUnionKbItemQueryPromotionLink { + s.AlipayH5Url = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetBrand.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetBrand.go new file mode 100644 index 0000000..0487123 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetBrand.go @@ -0,0 +1,20 @@ +package domain + +type AlibabaAlscUnionKbItemStoreDetailGetBrand struct { + /* + 品牌Id */ + BrandId *string `json:"brand_id,omitempty" ` + + /* + 品牌名 */ + BrandName *string `json:"brand_name,omitempty" ` +} + +func (s *AlibabaAlscUnionKbItemStoreDetailGetBrand) SetBrandId(v string) *AlibabaAlscUnionKbItemStoreDetailGetBrand { + s.BrandId = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetBrand) SetBrandName(v string) *AlibabaAlscUnionKbItemStoreDetailGetBrand { + s.BrandName = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetCategory.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetCategory.go new file mode 100644 index 0000000..3dfc12c --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetCategory.go @@ -0,0 +1,28 @@ +package domain + +type AlibabaAlscUnionKbItemStoreDetailGetCategory struct { + /* + 分类ID */ + CategoryId *string `json:"category_id,omitempty" ` + + /* + 分类名称 */ + Name *string `json:"name,omitempty" ` + + /* + 父分类ID */ + ParentCategoryId *string `json:"parent_category_id,omitempty" ` +} + +func (s *AlibabaAlscUnionKbItemStoreDetailGetCategory) SetCategoryId(v string) *AlibabaAlscUnionKbItemStoreDetailGetCategory { + s.CategoryId = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetCategory) SetName(v string) *AlibabaAlscUnionKbItemStoreDetailGetCategory { + s.Name = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetCategory) SetParentCategoryId(v string) *AlibabaAlscUnionKbItemStoreDetailGetCategory { + s.ParentCategoryId = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetImageContent.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetImageContent.go new file mode 100644 index 0000000..6260bee --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetImageContent.go @@ -0,0 +1,28 @@ +package domain + +type AlibabaAlscUnionKbItemStoreDetailGetImageContent struct { + /* + 标题 */ + Title *string `json:"title,omitempty" ` + + /* + 描述 */ + Desc *string `json:"desc,omitempty" ` + + /* + 图片列表 */ + Urls *[]string `json:"urls,omitempty" ` +} + +func (s *AlibabaAlscUnionKbItemStoreDetailGetImageContent) SetTitle(v string) *AlibabaAlscUnionKbItemStoreDetailGetImageContent { + s.Title = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetImageContent) SetDesc(v string) *AlibabaAlscUnionKbItemStoreDetailGetImageContent { + s.Desc = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetImageContent) SetUrls(v []string) *AlibabaAlscUnionKbItemStoreDetailGetImageContent { + s.Urls = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetKbItemShopDetailRequest.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetKbItemShopDetailRequest.go new file mode 100644 index 0000000..b85e7a8 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetKbItemShopDetailRequest.go @@ -0,0 +1,12 @@ +package domain + +type AlibabaAlscUnionKbItemStoreDetailGetKbItemShopDetailRequest struct { + /* + 门店ID */ + StoreId *string `json:"store_id,omitempty" ` +} + +func (s *AlibabaAlscUnionKbItemStoreDetailGetKbItemShopDetailRequest) SetStoreId(v string) *AlibabaAlscUnionKbItemStoreDetailGetKbItemShopDetailRequest { + s.StoreId = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetKbShopDetailDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetKbShopDetailDto.go new file mode 100644 index 0000000..7c0493b --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetKbShopDetailDto.go @@ -0,0 +1,20 @@ +package domain + +type AlibabaAlscUnionKbItemStoreDetailGetKbShopDetailDto struct { + /* + 门店基本信息 */ + BasicInfo *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo `json:"basic_info,omitempty" ` + + /* + 门店统计信息 */ + Statistics *AlibabaAlscUnionKbItemStoreDetailGetStoreStatistics `json:"statistics,omitempty" ` +} + +func (s *AlibabaAlscUnionKbItemStoreDetailGetKbShopDetailDto) SetBasicInfo(v AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo) *AlibabaAlscUnionKbItemStoreDetailGetKbShopDetailDto { + s.BasicInfo = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetKbShopDetailDto) SetStatistics(v AlibabaAlscUnionKbItemStoreDetailGetStoreStatistics) *AlibabaAlscUnionKbItemStoreDetailGetKbShopDetailDto { + s.Statistics = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetLocation.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetLocation.go new file mode 100644 index 0000000..87bfe8b --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetLocation.go @@ -0,0 +1,44 @@ +package domain + +type AlibabaAlscUnionKbItemStoreDetailGetLocation struct { + /* + 地址 */ + Address *string `json:"address,omitempty" ` + + /* + 地址备注(如交通信息等) */ + AddressMemo *string `json:"address_memo,omitempty" ` + + /* + 所属区域 */ + Region *AlibabaAlscUnionKbItemStoreDetailGetRegion `json:"region,omitempty" ` + + /* + 经度 */ + Longitude *string `json:"longitude,omitempty" ` + + /* + 纬度 */ + Latitude *string `json:"latitude,omitempty" ` +} + +func (s *AlibabaAlscUnionKbItemStoreDetailGetLocation) SetAddress(v string) *AlibabaAlscUnionKbItemStoreDetailGetLocation { + s.Address = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetLocation) SetAddressMemo(v string) *AlibabaAlscUnionKbItemStoreDetailGetLocation { + s.AddressMemo = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetLocation) SetRegion(v AlibabaAlscUnionKbItemStoreDetailGetRegion) *AlibabaAlscUnionKbItemStoreDetailGetLocation { + s.Region = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetLocation) SetLongitude(v string) *AlibabaAlscUnionKbItemStoreDetailGetLocation { + s.Longitude = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetLocation) SetLatitude(v string) *AlibabaAlscUnionKbItemStoreDetailGetLocation { + s.Latitude = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetRegion.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetRegion.go new file mode 100644 index 0000000..36cd970 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetRegion.go @@ -0,0 +1,52 @@ +package domain + +type AlibabaAlscUnionKbItemStoreDetailGetRegion 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 *AlibabaAlscUnionKbItemStoreDetailGetRegion) SetProvinceId(v string) *AlibabaAlscUnionKbItemStoreDetailGetRegion { + s.ProvinceId = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetRegion) SetProvinceName(v string) *AlibabaAlscUnionKbItemStoreDetailGetRegion { + s.ProvinceName = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetRegion) SetCityId(v string) *AlibabaAlscUnionKbItemStoreDetailGetRegion { + s.CityId = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetRegion) SetCityName(v string) *AlibabaAlscUnionKbItemStoreDetailGetRegion { + s.CityName = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetRegion) SetDistrictId(v string) *AlibabaAlscUnionKbItemStoreDetailGetRegion { + s.DistrictId = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetRegion) SetDistrictName(v string) *AlibabaAlscUnionKbItemStoreDetailGetRegion { + s.DistrictName = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo.go new file mode 100644 index 0000000..576caf7 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo.go @@ -0,0 +1,76 @@ +package domain + +type AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo 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 *AlibabaAlscUnionKbItemStoreDetailGetStoreBusiness `json:"business,omitempty" ` + + /* + 位置信息 */ + Location *AlibabaAlscUnionKbItemStoreDetailGetLocation `json:"location,omitempty" ` + + /* + 品牌 */ + Brand *AlibabaAlscUnionKbItemStoreDetailGetBrand `json:"brand,omitempty" ` + + /* + 门店所属行业分类 */ + Categories *[]AlibabaAlscUnionKbItemStoreDetailGetCategory `json:"categories,omitempty" ` + + /* + 门店资质 */ + Qualifications *[]AlibabaAlscUnionKbItemStoreDetailGetImageContent `json:"qualifications,omitempty" ` +} + +func (s *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo) SetStoreId(v string) *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo { + s.StoreId = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo) SetName(v string) *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo { + s.Name = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo) SetCover(v string) *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo { + s.Cover = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo) SetMobiles(v []string) *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo { + s.Mobiles = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo) SetBusiness(v AlibabaAlscUnionKbItemStoreDetailGetStoreBusiness) *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo { + s.Business = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo) SetLocation(v AlibabaAlscUnionKbItemStoreDetailGetLocation) *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo { + s.Location = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo) SetBrand(v AlibabaAlscUnionKbItemStoreDetailGetBrand) *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo { + s.Brand = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo) SetCategories(v []AlibabaAlscUnionKbItemStoreDetailGetCategory) *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo { + s.Categories = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo) SetQualifications(v []AlibabaAlscUnionKbItemStoreDetailGetImageContent) *AlibabaAlscUnionKbItemStoreDetailGetStoreBasicInfo { + s.Qualifications = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetStoreBusiness.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetStoreBusiness.go new file mode 100644 index 0000000..e2a3a46 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetStoreBusiness.go @@ -0,0 +1,36 @@ +package domain + +type AlibabaAlscUnionKbItemStoreDetailGetStoreBusiness struct { + /* + 营业状态(0-营业中,1-暂停营业,2-休息中,-1-关店) */ + BusinessStatus *int64 `json:"business_status,omitempty" ` + + /* + 营业状态描述 */ + BusinessDesc *string `json:"business_desc,omitempty" ` + + /* + 营业时间 */ + BusinessTime *AlibabaAlscUnionKbItemStoreDetailGetStoreBusinessTime `json:"business_time,omitempty" ` + + /* + 店铺公告 */ + Promotion *string `json:"promotion,omitempty" ` +} + +func (s *AlibabaAlscUnionKbItemStoreDetailGetStoreBusiness) SetBusinessStatus(v int64) *AlibabaAlscUnionKbItemStoreDetailGetStoreBusiness { + s.BusinessStatus = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetStoreBusiness) SetBusinessDesc(v string) *AlibabaAlscUnionKbItemStoreDetailGetStoreBusiness { + s.BusinessDesc = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetStoreBusiness) SetBusinessTime(v AlibabaAlscUnionKbItemStoreDetailGetStoreBusinessTime) *AlibabaAlscUnionKbItemStoreDetailGetStoreBusiness { + s.BusinessTime = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetStoreBusiness) SetPromotion(v string) *AlibabaAlscUnionKbItemStoreDetailGetStoreBusiness { + s.Promotion = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetStoreBusinessTime.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetStoreBusinessTime.go new file mode 100644 index 0000000..f0e7d35 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetStoreBusinessTime.go @@ -0,0 +1,12 @@ +package domain + +type AlibabaAlscUnionKbItemStoreDetailGetStoreBusinessTime struct { + /* + 营业时间文本化信息 */ + TimeTexts *[]string `json:"time_texts,omitempty" ` +} + +func (s *AlibabaAlscUnionKbItemStoreDetailGetStoreBusinessTime) SetTimeTexts(v []string) *AlibabaAlscUnionKbItemStoreDetailGetStoreBusinessTime { + s.TimeTexts = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetStoreStatistics.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetStoreStatistics.go new file mode 100644 index 0000000..257dcfd --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreDetailGetStoreStatistics.go @@ -0,0 +1,20 @@ +package domain + +type AlibabaAlscUnionKbItemStoreDetailGetStoreStatistics struct { + /* + 服务评级 */ + ServiceRating *string `json:"service_rating,omitempty" ` + + /* + 人均价格 */ + AvgPrice *string `json:"avg_price,omitempty" ` +} + +func (s *AlibabaAlscUnionKbItemStoreDetailGetStoreStatistics) SetServiceRating(v string) *AlibabaAlscUnionKbItemStoreDetailGetStoreStatistics { + s.ServiceRating = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreDetailGetStoreStatistics) SetAvgPrice(v string) *AlibabaAlscUnionKbItemStoreDetailGetStoreStatistics { + s.AvgPrice = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationDto.go new file mode 100644 index 0000000..c7315b0 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationDto.go @@ -0,0 +1,12 @@ +package domain + +type AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationDto struct { + /* + 门店ID(city_id不为空则返回当前城市门店,否则返回全部门店) */ + StoreId *string `json:"store_id,omitempty" ` +} + +func (s *AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationDto) SetStoreId(v string) *AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationDto { + s.StoreId = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationRequest.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationRequest.go new file mode 100644 index 0000000..021192a --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationRequest.go @@ -0,0 +1,28 @@ +package domain + +type AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationRequest 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 *AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationRequest) SetItemId(v string) *AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationRequest { + s.ItemId = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationRequest) SetCityId(v string) *AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationRequest { + s.CityId = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationRequest) SetBizType(v string) *AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationRequest { + s.BizType = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreRelationQueryPageModel.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreRelationQueryPageModel.go new file mode 100644 index 0000000..937422f --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbItemStoreRelationQueryPageModel.go @@ -0,0 +1,20 @@ +package domain + +type AlibabaAlscUnionKbItemStoreRelationQueryPageModel struct { + /* + 分页记录 */ + Records *[]AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationDto `json:"records,omitempty" ` + + /* + 总数 */ + Total *int64 `json:"total,omitempty" ` +} + +func (s *AlibabaAlscUnionKbItemStoreRelationQueryPageModel) SetRecords(v []AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationDto) *AlibabaAlscUnionKbItemStoreRelationQueryPageModel { + s.Records = &v + return s +} +func (s *AlibabaAlscUnionKbItemStoreRelationQueryPageModel) SetTotal(v int64) *AlibabaAlscUnionKbItemStoreRelationQueryPageModel { + s.Total = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderCreateOrderDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderCreateOrderDto.go new file mode 100644 index 0000000..bcf3f59 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderCreateOrderDto.go @@ -0,0 +1,84 @@ +package domain + +type AlibabaAlscUnionKbOrderCreateOrderDto struct { + /* + 渠道订单号,需保证全局唯一 */ + OuterOrderId *string `json:"outer_order_id,omitempty" ` + + /* + 商品ID */ + ItemId *string `json:"item_id,omitempty" ` + + /* + 购买数量 */ + Quantity *int64 `json:"quantity,omitempty" ` + + /* + 等同sell_price */ + PayOrderFee *int64 `json:"pay_order_fee,omitempty" ` + + /* + 商品的原价*份数,单位分 */ + OrderFee *int64 `json:"order_fee,omitempty" ` + + /* + 商品的活动价*份数,单位分 */ + SellPrice *int64 `json:"sell_price,omitempty" ` + + /* + 商品名称 */ + Title *string `json:"title,omitempty" ` + + /* + 扩展参数,json格式 */ + ExtInfo *string `json:"ext_info,omitempty" ` + + /* + true预下单不支付,false下单并支付 */ + SkipPay *bool `json:"skip_pay,omitempty" ` + + /* + 加密后的手机号 */ + Phone *string `json:"phone,omitempty" ` +} + +func (s *AlibabaAlscUnionKbOrderCreateOrderDto) SetOuterOrderId(v string) *AlibabaAlscUnionKbOrderCreateOrderDto { + s.OuterOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbOrderCreateOrderDto) SetItemId(v string) *AlibabaAlscUnionKbOrderCreateOrderDto { + s.ItemId = &v + return s +} +func (s *AlibabaAlscUnionKbOrderCreateOrderDto) SetQuantity(v int64) *AlibabaAlscUnionKbOrderCreateOrderDto { + s.Quantity = &v + return s +} +func (s *AlibabaAlscUnionKbOrderCreateOrderDto) SetPayOrderFee(v int64) *AlibabaAlscUnionKbOrderCreateOrderDto { + s.PayOrderFee = &v + return s +} +func (s *AlibabaAlscUnionKbOrderCreateOrderDto) SetOrderFee(v int64) *AlibabaAlscUnionKbOrderCreateOrderDto { + s.OrderFee = &v + return s +} +func (s *AlibabaAlscUnionKbOrderCreateOrderDto) SetSellPrice(v int64) *AlibabaAlscUnionKbOrderCreateOrderDto { + s.SellPrice = &v + return s +} +func (s *AlibabaAlscUnionKbOrderCreateOrderDto) SetTitle(v string) *AlibabaAlscUnionKbOrderCreateOrderDto { + s.Title = &v + return s +} +func (s *AlibabaAlscUnionKbOrderCreateOrderDto) SetExtInfo(v string) *AlibabaAlscUnionKbOrderCreateOrderDto { + s.ExtInfo = &v + return s +} +func (s *AlibabaAlscUnionKbOrderCreateOrderDto) SetSkipPay(v bool) *AlibabaAlscUnionKbOrderCreateOrderDto { + s.SkipPay = &v + return s +} +func (s *AlibabaAlscUnionKbOrderCreateOrderDto) SetPhone(v string) *AlibabaAlscUnionKbOrderCreateOrderDto { + s.Phone = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderCreateOrderVoucherDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderCreateOrderVoucherDto.go new file mode 100644 index 0000000..b3c966b --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderCreateOrderVoucherDto.go @@ -0,0 +1,28 @@ +package domain + +type AlibabaAlscUnionKbOrderCreateOrderVoucherDto struct { + /* + 外部订单号 */ + OuterOrderId *string `json:"outer_order_id,omitempty" ` + + /* + 淘宝子单号 */ + BizOrderId *int64 `json:"biz_order_id,omitempty" ` + + /* + 订单状态,创建成功后的状态,固定值 */ + OrderStatus *string `json:"order_status,omitempty" ` +} + +func (s *AlibabaAlscUnionKbOrderCreateOrderVoucherDto) SetOuterOrderId(v string) *AlibabaAlscUnionKbOrderCreateOrderVoucherDto { + s.OuterOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbOrderCreateOrderVoucherDto) SetBizOrderId(v int64) *AlibabaAlscUnionKbOrderCreateOrderVoucherDto { + s.BizOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbOrderCreateOrderVoucherDto) SetOrderStatus(v string) *AlibabaAlscUnionKbOrderCreateOrderVoucherDto { + s.OrderStatus = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderPayOrderPayDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderPayOrderPayDto.go new file mode 100644 index 0000000..930107a --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderPayOrderPayDto.go @@ -0,0 +1,20 @@ +package domain + +type AlibabaAlscUnionKbOrderPayOrderPayDto struct { + /* + 渠道订单号 */ + OuterOrderId *string `json:"outer_order_id,omitempty" ` + + /* + 淘宝子单号 */ + BizOrderId *string `json:"biz_order_id,omitempty" ` +} + +func (s *AlibabaAlscUnionKbOrderPayOrderPayDto) SetOuterOrderId(v string) *AlibabaAlscUnionKbOrderPayOrderPayDto { + s.OuterOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbOrderPayOrderPayDto) SetBizOrderId(v string) *AlibabaAlscUnionKbOrderPayOrderPayDto { + s.BizOrderId = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderPayOrderVoucherDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderPayOrderVoucherDto.go new file mode 100644 index 0000000..eda5c5a --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderPayOrderVoucherDto.go @@ -0,0 +1,28 @@ +package domain + +type AlibabaAlscUnionKbOrderPayOrderVoucherDto struct { + /* + 渠道订单号 */ + OuterOrderId *string `json:"outer_order_id,omitempty" ` + + /* + 淘宝子单号 */ + BizOrderId *string `json:"biz_order_id,omitempty" ` + + /* + 订单状态,创建成功后的状态 */ + OrderStatus *string `json:"order_status,omitempty" ` +} + +func (s *AlibabaAlscUnionKbOrderPayOrderVoucherDto) SetOuterOrderId(v string) *AlibabaAlscUnionKbOrderPayOrderVoucherDto { + s.OuterOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbOrderPayOrderVoucherDto) SetBizOrderId(v string) *AlibabaAlscUnionKbOrderPayOrderVoucherDto { + s.BizOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbOrderPayOrderVoucherDto) SetOrderStatus(v string) *AlibabaAlscUnionKbOrderPayOrderVoucherDto { + s.OrderStatus = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderQueryOrderQueryDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderQueryOrderQueryDto.go new file mode 100644 index 0000000..e93fe0e --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderQueryOrderQueryDto.go @@ -0,0 +1,12 @@ +package domain + +type AlibabaAlscUnionKbOrderQueryOrderQueryDto struct { + /* + 淘宝子单号 */ + BizOrderId *string `json:"biz_order_id,omitempty" ` +} + +func (s *AlibabaAlscUnionKbOrderQueryOrderQueryDto) SetBizOrderId(v string) *AlibabaAlscUnionKbOrderQueryOrderQueryDto { + s.BizOrderId = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto.go new file mode 100644 index 0000000..47fe8fe --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto.go @@ -0,0 +1,110 @@ +package domain + +import zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" + +type AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto struct { + /* + 商品ID */ + ItemId *string `json:"item_id,omitempty" ` + + /* + 商品名称 */ + Title *string `json:"title,omitempty" ` + + /* + 凭证ID */ + VoucherId *string `json:"voucher_id,omitempty" ` + + /* + 核销码。使用时需要生成二维码,并提示“请商家用阿里本地通(原口碑掌柜)核销”,否则用户核销时会被商家拒绝 */ + TicketCode *string `json:"ticket_code,omitempty" ` + + /* + 凭证状态。可用EFFECTIVE、已用USED、失效CANCELED */ + VoucherStatus *string `json:"voucher_status,omitempty" ` + + /* + 总份数 */ + TotalAmount *int64 `json:"total_amount,omitempty" ` + + /* + 已使用份数 */ + UsedAmount *int64 `json:"used_amount,omitempty" ` + + /* + 已退款份数(售中、售后) */ + RefundAmount *int64 `json:"refund_amount,omitempty" ` + + /* + 凭证生效时间 */ + EffectTime *zhios_third_party_utils.LocalTime `json:"effect_time,omitempty" ` + + /* + 凭证过期时间 */ + ExpireTime *zhios_third_party_utils.LocalTime `json:"expire_time,omitempty" ` + + /* + 扩展字段 */ + ExtInfo *string `json:"ext_info,omitempty" ` + + /* + 凭证退款类型。售中退BEFORE_USE_REFUND、售后退AFTER_USE_REFUND、过期退EXPIRATION_REFUND、冲正REVERSE */ + RefundType *string `json:"refund_type,omitempty" ` + + /* + 小程序地址或http地址 */ + TicketUrl *string `json:"ticket_url,omitempty" ` +} + +func (s *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto) SetItemId(v string) *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto { + s.ItemId = &v + return s +} +func (s *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto) SetTitle(v string) *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto { + s.Title = &v + return s +} +func (s *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto) SetVoucherId(v string) *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto { + s.VoucherId = &v + return s +} +func (s *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto) SetTicketCode(v string) *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto { + s.TicketCode = &v + return s +} +func (s *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto) SetVoucherStatus(v string) *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto { + s.VoucherStatus = &v + return s +} +func (s *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto) SetTotalAmount(v int64) *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto { + s.TotalAmount = &v + return s +} +func (s *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto) SetUsedAmount(v int64) *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto { + s.UsedAmount = &v + return s +} +func (s *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto) SetRefundAmount(v int64) *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto { + s.RefundAmount = &v + return s +} +func (s *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto) SetEffectTime(v zhios_third_party_utils.LocalTime) *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto { + s.EffectTime = &v + return s +} +func (s *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto) SetExpireTime(v zhios_third_party_utils.LocalTime) *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto { + s.ExpireTime = &v + return s +} +func (s *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto) SetExtInfo(v string) *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto { + s.ExtInfo = &v + return s +} +func (s *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto) SetRefundType(v string) *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto { + s.RefundType = &v + return s +} +func (s *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto) SetTicketUrl(v string) *AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto { + s.TicketUrl = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderQueryOrderVoucherDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderQueryOrderVoucherDto.go new file mode 100644 index 0000000..d0ec7db --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderQueryOrderVoucherDto.go @@ -0,0 +1,28 @@ +package domain + +type AlibabaAlscUnionKbOrderQueryOrderVoucherDto struct { + /* + 淘宝子单号 */ + BizOrderId *string `json:"biz_order_id,omitempty" ` + + /* + 凭证列表 */ + VoucherList *[]AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto `json:"voucher_list,omitempty" ` + + /* + 订单状态。当前只有PAID一个状态 */ + OrderStatus *string `json:"order_status,omitempty" ` +} + +func (s *AlibabaAlscUnionKbOrderQueryOrderVoucherDto) SetBizOrderId(v string) *AlibabaAlscUnionKbOrderQueryOrderVoucherDto { + s.BizOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbOrderQueryOrderVoucherDto) SetVoucherList(v []AlibabaAlscUnionKbOrderQueryOrderVoucherDetailDto) *AlibabaAlscUnionKbOrderQueryOrderVoucherDto { + s.VoucherList = &v + return s +} +func (s *AlibabaAlscUnionKbOrderQueryOrderVoucherDto) SetOrderStatus(v string) *AlibabaAlscUnionKbOrderQueryOrderVoucherDto { + s.OrderStatus = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderRefundOrderRefundDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderRefundOrderRefundDto.go new file mode 100644 index 0000000..c0abea8 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderRefundOrderRefundDto.go @@ -0,0 +1,36 @@ +package domain + +type AlibabaAlscUnionKbOrderRefundOrderRefundDto struct { + /* + 用户退款原因,必填 */ + Reason *string `json:"reason,omitempty" ` + + /* + 本地生活订单号,,必填 */ + BizOrderId *string `json:"biz_order_id,omitempty" ` + + /* + 退款明细 */ + VoucherList *[]AlibabaAlscUnionKbOrderRefundOrderVoucherDetailDto `json:"voucher_list,omitempty" ` + + /* + 扩展参数,json格式 */ + ExtInfo *string `json:"ext_info,omitempty" ` +} + +func (s *AlibabaAlscUnionKbOrderRefundOrderRefundDto) SetReason(v string) *AlibabaAlscUnionKbOrderRefundOrderRefundDto { + s.Reason = &v + return s +} +func (s *AlibabaAlscUnionKbOrderRefundOrderRefundDto) SetBizOrderId(v string) *AlibabaAlscUnionKbOrderRefundOrderRefundDto { + s.BizOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbOrderRefundOrderRefundDto) SetVoucherList(v []AlibabaAlscUnionKbOrderRefundOrderVoucherDetailDto) *AlibabaAlscUnionKbOrderRefundOrderRefundDto { + s.VoucherList = &v + return s +} +func (s *AlibabaAlscUnionKbOrderRefundOrderRefundDto) SetExtInfo(v string) *AlibabaAlscUnionKbOrderRefundOrderRefundDto { + s.ExtInfo = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderRefundOrderVoucherDetailDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderRefundOrderVoucherDetailDto.go new file mode 100644 index 0000000..2f0b184 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderRefundOrderVoucherDetailDto.go @@ -0,0 +1,20 @@ +package domain + +type AlibabaAlscUnionKbOrderRefundOrderVoucherDetailDto struct { + /* + 商品ID,必填 */ + ItemId *string `json:"item_id,omitempty" ` + + /* + 凭证ID,必填 */ + VoucherId *string `json:"voucher_id,omitempty" ` +} + +func (s *AlibabaAlscUnionKbOrderRefundOrderVoucherDetailDto) SetItemId(v string) *AlibabaAlscUnionKbOrderRefundOrderVoucherDetailDto { + s.ItemId = &v + return s +} +func (s *AlibabaAlscUnionKbOrderRefundOrderVoucherDetailDto) SetVoucherId(v string) *AlibabaAlscUnionKbOrderRefundOrderVoucherDetailDto { + s.VoucherId = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderRefundOrderVoucherDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderRefundOrderVoucherDto.go new file mode 100644 index 0000000..2d85f3f --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbOrderRefundOrderVoucherDto.go @@ -0,0 +1,20 @@ +package domain + +type AlibabaAlscUnionKbOrderRefundOrderVoucherDto struct { + /* + 淘宝子单号 */ + BizOrderId *int64 `json:"biz_order_id,omitempty" ` + + /* + 订单状态 */ + OrderStatus *string `json:"order_status,omitempty" ` +} + +func (s *AlibabaAlscUnionKbOrderRefundOrderVoucherDto) SetBizOrderId(v int64) *AlibabaAlscUnionKbOrderRefundOrderVoucherDto { + s.BizOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbOrderRefundOrderVoucherDto) SetOrderStatus(v string) *AlibabaAlscUnionKbOrderRefundOrderVoucherDto { + s.OrderStatus = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreItemQueryKbShopItemDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreItemQueryKbShopItemDto.go new file mode 100644 index 0000000..5d63047 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreItemQueryKbShopItemDto.go @@ -0,0 +1,52 @@ +package domain + +type AlibabaAlscUnionKbStoreItemQueryKbShopItemDto struct { + /* + 商品ID */ + ItemId *string `json:"item_id,omitempty" ` + + /* + 商品标题 */ + Title *string `json:"title,omitempty" ` + + /* + 商品图 */ + MainPicture *string `json:"main_picture,omitempty" ` + + /* + 活动价(分) */ + ActivityPriceCent *int64 `json:"activity_price_cent,omitempty" ` + + /* + 券后价(分) */ + PriceWithCouponCent *int64 `json:"price_with_coupon_cent,omitempty" ` + + /* + 推广链接 */ + Link *AlibabaAlscUnionKbStoreItemQueryPromotionLink `json:"link,omitempty" ` +} + +func (s *AlibabaAlscUnionKbStoreItemQueryKbShopItemDto) SetItemId(v string) *AlibabaAlscUnionKbStoreItemQueryKbShopItemDto { + s.ItemId = &v + return s +} +func (s *AlibabaAlscUnionKbStoreItemQueryKbShopItemDto) SetTitle(v string) *AlibabaAlscUnionKbStoreItemQueryKbShopItemDto { + s.Title = &v + return s +} +func (s *AlibabaAlscUnionKbStoreItemQueryKbShopItemDto) SetMainPicture(v string) *AlibabaAlscUnionKbStoreItemQueryKbShopItemDto { + s.MainPicture = &v + return s +} +func (s *AlibabaAlscUnionKbStoreItemQueryKbShopItemDto) SetActivityPriceCent(v int64) *AlibabaAlscUnionKbStoreItemQueryKbShopItemDto { + s.ActivityPriceCent = &v + return s +} +func (s *AlibabaAlscUnionKbStoreItemQueryKbShopItemDto) SetPriceWithCouponCent(v int64) *AlibabaAlscUnionKbStoreItemQueryKbShopItemDto { + s.PriceWithCouponCent = &v + return s +} +func (s *AlibabaAlscUnionKbStoreItemQueryKbShopItemDto) SetLink(v AlibabaAlscUnionKbStoreItemQueryPromotionLink) *AlibabaAlscUnionKbStoreItemQueryKbShopItemDto { + s.Link = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreItemQueryPageModel.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreItemQueryPageModel.go new file mode 100644 index 0000000..5c36d6a --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreItemQueryPageModel.go @@ -0,0 +1,20 @@ +package domain + +type AlibabaAlscUnionKbStoreItemQueryPageModel struct { + /* + 总数 */ + Total *int64 `json:"total,omitempty" ` + + /* + 分页记录 */ + Records *[]AlibabaAlscUnionKbStoreItemQueryKbShopItemDto `json:"records,omitempty" ` +} + +func (s *AlibabaAlscUnionKbStoreItemQueryPageModel) SetTotal(v int64) *AlibabaAlscUnionKbStoreItemQueryPageModel { + s.Total = &v + return s +} +func (s *AlibabaAlscUnionKbStoreItemQueryPageModel) SetRecords(v []AlibabaAlscUnionKbStoreItemQueryKbShopItemDto) *AlibabaAlscUnionKbStoreItemQueryPageModel { + s.Records = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreItemQueryPromotionLink.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreItemQueryPromotionLink.go new file mode 100644 index 0000000..3ca30b2 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreItemQueryPromotionLink.go @@ -0,0 +1,20 @@ +package domain + +type AlibabaAlscUnionKbStoreItemQueryPromotionLink struct { + /* + 支付宝schema */ + AlipaySchemeUrl *string `json:"alipay_scheme_url,omitempty" ` + + /* + 支付宝小程序h5 url */ + AlipayH5Url *string `json:"alipay_h5_url,omitempty" ` +} + +func (s *AlibabaAlscUnionKbStoreItemQueryPromotionLink) SetAlipaySchemeUrl(v string) *AlibabaAlscUnionKbStoreItemQueryPromotionLink { + s.AlipaySchemeUrl = &v + return s +} +func (s *AlibabaAlscUnionKbStoreItemQueryPromotionLink) SetAlipayH5Url(v string) *AlibabaAlscUnionKbStoreItemQueryPromotionLink { + s.AlipayH5Url = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreQueryCategory.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreQueryCategory.go new file mode 100644 index 0000000..e6f3af0 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreQueryCategory.go @@ -0,0 +1,20 @@ +package domain + +type AlibabaAlscUnionKbStoreQueryCategory struct { + /* + 类目ID */ + CategoryId *string `json:"category_id,omitempty" ` + + /* + 类名名称 */ + Name *string `json:"name,omitempty" ` +} + +func (s *AlibabaAlscUnionKbStoreQueryCategory) SetCategoryId(v string) *AlibabaAlscUnionKbStoreQueryCategory { + s.CategoryId = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryCategory) SetName(v string) *AlibabaAlscUnionKbStoreQueryCategory { + s.Name = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreQueryInteger.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreQueryInteger.go new file mode 100644 index 0000000..2a8509e --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreQueryInteger.go @@ -0,0 +1,52 @@ +package domain + +type AlibabaAlscUnionKbStoreQueryInteger struct { + /* + 门店ID */ + StoreId *string `json:"store_id,omitempty" ` + + /* + 门店名称 */ + Name *string `json:"name,omitempty" ` + + /* + 封面图 */ + Cover *string `json:"cover,omitempty" ` + + /* + 门店所属行业分类 */ + Categories *[]AlibabaAlscUnionKbStoreQueryCategory `json:"categories,omitempty" ` + + /* + 位置信息 */ + Location *AlibabaAlscUnionKbStoreQueryLocation `json:"location,omitempty" ` + + /* + 距离(米) */ + Distance *int64 `json:"distance,omitempty" ` +} + +func (s *AlibabaAlscUnionKbStoreQueryInteger) SetStoreId(v string) *AlibabaAlscUnionKbStoreQueryInteger { + s.StoreId = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryInteger) SetName(v string) *AlibabaAlscUnionKbStoreQueryInteger { + s.Name = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryInteger) SetCover(v string) *AlibabaAlscUnionKbStoreQueryInteger { + s.Cover = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryInteger) SetCategories(v []AlibabaAlscUnionKbStoreQueryCategory) *AlibabaAlscUnionKbStoreQueryInteger { + s.Categories = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryInteger) SetLocation(v AlibabaAlscUnionKbStoreQueryLocation) *AlibabaAlscUnionKbStoreQueryInteger { + s.Location = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryInteger) SetDistance(v int64) *AlibabaAlscUnionKbStoreQueryInteger { + s.Distance = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreQueryLocation.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreQueryLocation.go new file mode 100644 index 0000000..c056651 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreQueryLocation.go @@ -0,0 +1,28 @@ +package domain + +type AlibabaAlscUnionKbStoreQueryLocation struct { + /* + 经度 */ + Longitude *string `json:"longitude,omitempty" ` + + /* + 纬度 */ + Latitude *string `json:"latitude,omitempty" ` + + /* + 地址 */ + Address *string `json:"address,omitempty" ` +} + +func (s *AlibabaAlscUnionKbStoreQueryLocation) SetLongitude(v string) *AlibabaAlscUnionKbStoreQueryLocation { + s.Longitude = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryLocation) SetLatitude(v string) *AlibabaAlscUnionKbStoreQueryLocation { + s.Latitude = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryLocation) SetAddress(v string) *AlibabaAlscUnionKbStoreQueryLocation { + s.Address = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreQueryPageModel.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreQueryPageModel.go new file mode 100644 index 0000000..3e7612c --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbStoreQueryPageModel.go @@ -0,0 +1,44 @@ +package domain + +type AlibabaAlscUnionKbStoreQueryPageModel struct { + /* + 会话ID(下次请求作为请求参数,用于标记分页会话自动翻页) */ + SessionId *string `json:"session_id,omitempty" ` + + /* + 页码 */ + PageNumber *int64 `json:"page_number,omitempty" ` + + /* + 每页数目 */ + PageSize *int64 `json:"page_size,omitempty" ` + + /* + 总数 */ + Total *int64 `json:"total,omitempty" ` + + /* + 分页记录 */ + Records *[]AlibabaAlscUnionKbStoreQueryInteger `json:"records,omitempty" ` +} + +func (s *AlibabaAlscUnionKbStoreQueryPageModel) SetSessionId(v string) *AlibabaAlscUnionKbStoreQueryPageModel { + s.SessionId = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryPageModel) SetPageNumber(v int64) *AlibabaAlscUnionKbStoreQueryPageModel { + s.PageNumber = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryPageModel) SetPageSize(v int64) *AlibabaAlscUnionKbStoreQueryPageModel { + s.PageSize = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryPageModel) SetTotal(v int64) *AlibabaAlscUnionKbStoreQueryPageModel { + s.Total = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryPageModel) SetRecords(v []AlibabaAlscUnionKbStoreQueryInteger) *AlibabaAlscUnionKbStoreQueryPageModel { + s.Records = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto.go new file mode 100644 index 0000000..fa8478a --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto.go @@ -0,0 +1,244 @@ +package domain + +type AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto struct { + /* + 商品标题 */ + Title *string `json:"title,omitempty" ` + + /* + 商品图片url */ + PicUrl *string `json:"pic_url,omitempty" ` + + /* + 店铺名称 */ + ShopName *string `json:"shop_name,omitempty" ` + + /* + 付款金额 */ + PayAmount *string `json:"pay_amount,omitempty" ` + + /* + 结算金额 */ + SettleAmount *string `json:"settle_amount,omitempty" ` + + /* + 订单付款时间 */ + PayTime *string `json:"pay_time,omitempty" ` + + /* + 收货时间 */ + ReceiveTime *string `json:"receive_time,omitempty" ` + + /* + 订单结算时间 */ + SettleTime *string `json:"settle_time,omitempty" ` + + /* + 订单状态,0-已失效 1-已下单 2-已付款 4-已收货 */ + OrderState *int64 `json:"order_state,omitempty" ` + + /* + 结算状态,1.已结算 2.未结算 */ + SettleState *int64 `json:"settle_state,omitempty" ` + + /* + 结算预估收入 */ + Settle *string `json:"settle,omitempty" ` + + /* + 技术服务费 */ + Service *string `json:"service,omitempty" ` + + /* + 淘宝子单号 */ + BizOrderId *string `json:"biz_order_id,omitempty" ` + + /* + 淘宝主单号 */ + ParentOrderId *string `json:"parent_order_id,omitempty" ` + + /* + 点击时间 */ + TraceTime *string `json:"trace_time,omitempty" ` + + /* + 商品id */ + ItemId *string `json:"item_id,omitempty" ` + + /* + 商品数量 */ + ProductNum *int64 `json:"product_num,omitempty" ` + + /* + 商品单价 */ + UnitPrice *string `json:"unit_price,omitempty" ` + + /* + 联盟补贴金额 */ + SubsidyFee *string `json:"subsidy_fee,omitempty" ` + + /* + 激励金额(第二阶段分佣金额) */ + AwardFee *string `json:"award_fee,omitempty" ` + + /* + 技术服务费率 */ + PlatformCommissionRate *string `json:"platform_commission_rate,omitempty" ` + + /* + 技术服务费 */ + PlatformCommissionFee *string `json:"platform_commission_fee,omitempty" ` + + /* + 媒体id */ + MediaId *int64 `json:"media_id,omitempty" ` + + /* + 媒体名称 */ + MediaName *string `json:"media_name,omitempty" ` + + /* + 推广位id */ + AdZoneId *int64 `json:"ad_zone_id,omitempty" ` + + /* + 推广位名称 */ + AdZoneName *string `json:"ad_zone_name,omitempty" ` + + /* + 类目名称 */ + CategoryName *string `json:"category_name,omitempty" ` + + /* + 创建时间 */ + TkCreateTime *string `json:"tk_create_time,omitempty" ` + + /* + 预估收入 */ + Income *string `json:"income,omitempty" ` + + /* + 更新时间 */ + GmtModified *string `json:"gmt_modified,omitempty" ` +} + +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetTitle(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.Title = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetPicUrl(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.PicUrl = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetShopName(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.ShopName = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetPayAmount(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.PayAmount = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetSettleAmount(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.SettleAmount = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetPayTime(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.PayTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetReceiveTime(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.ReceiveTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetSettleTime(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.SettleTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetOrderState(v int64) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.OrderState = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetSettleState(v int64) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.SettleState = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetSettle(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.Settle = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetService(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.Service = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetBizOrderId(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.BizOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetParentOrderId(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.ParentOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetTraceTime(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.TraceTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetItemId(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.ItemId = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetProductNum(v int64) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.ProductNum = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetUnitPrice(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.UnitPrice = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetSubsidyFee(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.SubsidyFee = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetAwardFee(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.AwardFee = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetPlatformCommissionRate(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.PlatformCommissionRate = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetPlatformCommissionFee(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.PlatformCommissionFee = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetMediaId(v int64) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.MediaId = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetMediaName(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.MediaName = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetAdZoneId(v int64) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.AdZoneId = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetAdZoneName(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.AdZoneName = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetCategoryName(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.CategoryName = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetTkCreateTime(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.TkCreateTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetIncome(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.Income = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto) SetGmtModified(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto { + s.GmtModified = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO.go new file mode 100644 index 0000000..e762f8a --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO.go @@ -0,0 +1,100 @@ +package domain + +type AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO struct { + /* + 商品标题 */ + Title *string `json:"title,omitempty" ` + + /* + 商品图片 */ + PicUrl *string `json:"pic_url,omitempty" ` + + /* + 店铺名称 */ + ShopName *string `json:"shop_name,omitempty" ` + + /* + 付款金额 */ + PayAmount *string `json:"pay_amount,omitempty" ` + + /* + 结算金额 */ + SettleAmount *string `json:"settle_amount,omitempty" ` + + /* + 订单结算时间 */ + SettleTime *string `json:"settle_time,omitempty" ` + + /* + 维权创建时间 */ + ExplainStartTime *string `json:"explain_start_time,omitempty" ` + + /* + 维权结束时间 */ + ExplainEndTime *string `json:"explain_end_time,omitempty" ` + + /* + 维权状态,0.待申诉 1.待审核 2.审核中 3.申诉成功 4.申诉失败 5.申诉过期 */ + ExplainState *int64 `json:"explain_state,omitempty" ` + + /* + 渠道应结算金额 */ + Settle *string `json:"settle,omitempty" ` + + /* + 返佣完成状态 0-待返回 1-已返回 */ + ReturnCommissionState *int64 `json:"return_commission_state,omitempty" ` + + /* + 订单流水号 */ + SerialNo *string `json:"serial_no,omitempty" ` +} + +func (s *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO) SetTitle(v string) *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO { + s.Title = &v + return s +} +func (s *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO) SetPicUrl(v string) *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO { + s.PicUrl = &v + return s +} +func (s *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO) SetShopName(v string) *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO { + s.ShopName = &v + return s +} +func (s *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO) SetPayAmount(v string) *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO { + s.PayAmount = &v + return s +} +func (s *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO) SetSettleAmount(v string) *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO { + s.SettleAmount = &v + return s +} +func (s *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO) SetSettleTime(v string) *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO { + s.SettleTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO) SetExplainStartTime(v string) *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO { + s.ExplainStartTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO) SetExplainEndTime(v string) *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO { + s.ExplainEndTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO) SetExplainState(v int64) *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO { + s.ExplainState = &v + return s +} +func (s *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO) SetSettle(v string) *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO { + s.Settle = &v + return s +} +func (s *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO) SetReturnCommissionState(v int64) *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO { + s.ReturnCommissionState = &v + return s +} +func (s *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO) SetSerialNo(v string) *AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO { + s.SerialNo = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO.go new file mode 100644 index 0000000..3360fe8 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO.go @@ -0,0 +1,116 @@ +package domain + +type AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO struct { + /* + 商品标题 */ + Title *string `json:"title,omitempty" ` + + /* + 商品图片url */ + PicUrl *string `json:"pic_url,omitempty" ` + + /* + 店铺名称 */ + ShopName *string `json:"shop_name,omitempty" ` + + /* + 付款金额 */ + PayAmount *string `json:"pay_amount,omitempty" ` + + /* + 结算金额 */ + SettleAmount *string `json:"settle_amount,omitempty" ` + + /* + 订单结算时间 */ + SettleTime *string `json:"settle_time,omitempty" ` + + /* + 维权创建时间 */ + ExplainStartTime *string `json:"explain_start_time,omitempty" ` + + /* + 维权结束时间 */ + ExplainEndTime *string `json:"explain_end_time,omitempty" ` + + /* + 维权状态,0-维权成功 1-维权创建 2-维权关闭 3-维权失败 */ + ExplainState *int64 `json:"explain_state,omitempty" ` + + /* + 渠道应结算金额 */ + Settle *string `json:"settle,omitempty" ` + + /* + 申诉之后的佣金返回状态 1-已结算 2-未结算 */ + SettleState *int64 `json:"settle_state,omitempty" ` + + /* + 淘宝子单号 */ + BizOrderId *string `json:"biz_order_id,omitempty" ` + + /* + 父订单号 */ + ParentOrderId *string `json:"parent_order_id,omitempty" ` + + /* + 更新时间 */ + GmtModified *string `json:"gmt_modified,omitempty" ` +} + +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO) SetTitle(v string) *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO { + s.Title = &v + return s +} +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO) SetPicUrl(v string) *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO { + s.PicUrl = &v + return s +} +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO) SetShopName(v string) *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO { + s.ShopName = &v + return s +} +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO) SetPayAmount(v string) *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO { + s.PayAmount = &v + return s +} +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO) SetSettleAmount(v string) *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO { + s.SettleAmount = &v + return s +} +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO) SetSettleTime(v string) *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO { + s.SettleTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO) SetExplainStartTime(v string) *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO { + s.ExplainStartTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO) SetExplainEndTime(v string) *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO { + s.ExplainEndTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO) SetExplainState(v int64) *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO { + s.ExplainState = &v + return s +} +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO) SetSettle(v string) *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO { + s.Settle = &v + return s +} +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO) SetSettleState(v int64) *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO { + s.SettleState = &v + return s +} +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO) SetBizOrderId(v string) *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO { + s.BizOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO) SetParentOrderId(v string) *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO { + s.ParentOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO) SetGmtModified(v string) *AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO { + s.GmtModified = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO.go new file mode 100644 index 0000000..f8b2285 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO.go @@ -0,0 +1,436 @@ +package domain + +type AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO struct { + /* + 商品标题 */ + Title *string `json:"title,omitempty" ` + + /* + 商品图片下载url */ + PicUrl *string `json:"pic_url,omitempty" ` + + /* + 店铺名称 */ + ShopName *string `json:"shop_name,omitempty" ` + + /* + 付款金额 */ + PayAmount *string `json:"pay_amount,omitempty" ` + + /* + 结算金额,针对CPS订单 */ + SettleAmount *string `json:"settle_amount,omitempty" ` + + /* + 点击时间 */ + TraceTime *string `json:"trace_time,omitempty" ` + + /* + 创建时间 */ + TkCreateTime *string `json:"tk_create_time,omitempty" ` + + /* + 付款时间 */ + PayTime *string `json:"pay_time,omitempty" ` + + /* + 收货时间 */ + ReceiveTime *string `json:"receive_time,omitempty" ` + + /* + 结算时间 */ + SettleTime *string `json:"settle_time,omitempty" ` + + /* + 预估收入。付款之后有值。没结算之前只有income有值 */ + Income *string `json:"income,omitempty" ` + + /* + 结算预估收入。最终到手的佣金,没有扣除技术服务;结算之后有值 */ + Settle *string `json:"settle,omitempty" ` + + /* + 商品ID */ + ItemId *string `json:"item_id,omitempty" ` + + /* + 商品数量 */ + ProductNum *int64 `json:"product_num,omitempty" ` + + /* + 商品单价 */ + UnitPrice *string `json:"unit_price,omitempty" ` + + /* + 商品类目 */ + CategoryName *string `json:"category_name,omitempty" ` + + /* + 淘宝子单号 */ + BizOrderId *int64 `json:"biz_order_id,omitempty" ` + + /* + 淘宝主单号 */ + ParentOrderId *int64 `json:"parent_order_id,omitempty" ` + + /* + 主商品ID,针对CPS订单 */ + MainItemId *string `json:"main_item_id,omitempty" ` + + /* + 主商品名称,针对CPS订单 */ + MainItemTitle *string `json:"main_item_title,omitempty" ` + + /* + 订单状态,0-已失效 1-已下单 2-已付款 4-已收货 */ + OrderState *int64 `json:"order_state,omitempty" ` + + /* + 订单补充状态,针对CPS订单,考虑到存在已付款的cps订单发生售中退款,不参与结算的情况需要渠道知晓 */ + OrderItemStatusName *string `json:"order_item_status_name,omitempty" ` + + /* + 结算状态,1-已结算 2-未结算 */ + SettleState *int64 `json:"settle_state,omitempty" ` + + /* + 结算基数,针对CPS订单,等于付款金额+平台补贴 */ + FullSettleAmount *string `json:"full_settle_amount,omitempty" ` + + /* + 佣金比率,针对CPS订单 */ + CommissionRate *string `json:"commission_rate,omitempty" ` + + /* + 佣金金额,针对CPS订单 */ + CommissionFee *string `json:"commission_fee,omitempty" ` + + /* + 补贴比率,针对CPS订单 */ + SubsidyRate *string `json:"subsidy_rate,omitempty" ` + + /* + 补贴金额 */ + SubsidyFee *string `json:"subsidy_fee,omitempty" ` + + /* + 收入比率,针对CPS订单,等于佣金比率+补贴比率 */ + IncomeRate *string `json:"income_rate,omitempty" ` + + /* + 分成比率,针对CPS订单 */ + StratifyRate *string `json:"stratify_rate,omitempty" ` + + /* + 提成,针对CPS订单,等于收入比率*分成比率 */ + DeductRate *string `json:"deduct_rate,omitempty" ` + + /* + 技术服务费率 */ + PlatformCommissionRate *string `json:"platform_commission_rate,omitempty" ` + + /* + 技术服务费 */ + PlatformCommissionFee *string `json:"platform_commission_fee,omitempty" ` + + /* + 淘宝直播费率,针对CPS订单 */ + ChannelRate *string `json:"channel_rate,omitempty" ` + + /* + 淘宝直播费,针对CPS订单 */ + ChannelFee *string `json:"channel_fee,omitempty" ` + + /* + 媒体ID */ + MediaId *string `json:"media_id,omitempty" ` + + /* + 媒体名称 */ + MediaName *string `json:"media_name,omitempty" ` + + /* + 推广位ID */ + AdZoneId *string `json:"ad_zone_id,omitempty" ` + + /* + 推广位名称 */ + AdZoneName *string `json:"ad_zone_name,omitempty" ` + + /* + 招商服务费 */ + ActivityFee *string `json:"activity_fee,omitempty" ` + + /* + 招商服务费中的技术服务费 */ + ActivityServiceFee *string `json:"activity_service_fee,omitempty" ` + + /* + 招商服务费中的技术服务率 */ + ActivityServiceRate *string `json:"activity_service_rate,omitempty" ` + + /* + 更新时间 */ + GmtModified *string `json:"gmt_modified,omitempty" ` + + /* + 售中退 或 售后退 */ + Tag *string `json:"tag,omitempty" ` + + /* + 会员标识 */ + Sid *string `json:"sid,omitempty" ` + + /* + 1口碑,2饿了么 */ + PlatformType *int64 `json:"platform_type,omitempty" ` + + /* + 活动ID */ + ActivityId *int64 `json:"activity_id,omitempty" ` + + /* + 核销门店(已加密) */ + UsedStoreId *string `json:"used_store_id,omitempty" ` + + /* + pid */ + Pid *string `json:"pid,omitempty" ` + + /* + 卡券订单号 */ + RelationOrderId *int64 `json:"relation_order_id,omitempty" ` + + /* + 场景值,7卡券订单,8卡券核销订单 */ + FlowType *int64 `json:"flow_type,omitempty" ` + + /* + 0已失效,1已下单,2已付款,3售中退,4已收货,5售后退 */ + OrderItemStatus *int64 `json:"order_item_status,omitempty" ` + + /* + 活动信息明细 */ + ActivityInfoRemarkList *string `json:"activity_info_remark_list,omitempty" ` + + /* + 权益ID(flow_type=10或11时为媒体出资活动ID) */ + ChannelRightId *string `json:"channel_right_id,omitempty" ` +} + +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetTitle(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.Title = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetPicUrl(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.PicUrl = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetShopName(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.ShopName = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetPayAmount(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.PayAmount = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetSettleAmount(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.SettleAmount = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetTraceTime(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.TraceTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetTkCreateTime(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.TkCreateTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetPayTime(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.PayTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetReceiveTime(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.ReceiveTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetSettleTime(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.SettleTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetIncome(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.Income = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetSettle(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.Settle = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetItemId(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.ItemId = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetProductNum(v int64) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.ProductNum = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetUnitPrice(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.UnitPrice = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetCategoryName(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.CategoryName = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetBizOrderId(v int64) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.BizOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetParentOrderId(v int64) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.ParentOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetMainItemId(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.MainItemId = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetMainItemTitle(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.MainItemTitle = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetOrderState(v int64) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.OrderState = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetOrderItemStatusName(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.OrderItemStatusName = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetSettleState(v int64) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.SettleState = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetFullSettleAmount(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.FullSettleAmount = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetCommissionRate(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.CommissionRate = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetCommissionFee(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.CommissionFee = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetSubsidyRate(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.SubsidyRate = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetSubsidyFee(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.SubsidyFee = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetIncomeRate(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.IncomeRate = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetStratifyRate(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.StratifyRate = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetDeductRate(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.DeductRate = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetPlatformCommissionRate(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.PlatformCommissionRate = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetPlatformCommissionFee(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.PlatformCommissionFee = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetChannelRate(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.ChannelRate = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetChannelFee(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.ChannelFee = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetMediaId(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.MediaId = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetMediaName(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.MediaName = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetAdZoneId(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.AdZoneId = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetAdZoneName(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.AdZoneName = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetActivityFee(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.ActivityFee = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetActivityServiceFee(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.ActivityServiceFee = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetActivityServiceRate(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.ActivityServiceRate = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetGmtModified(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.GmtModified = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetTag(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.Tag = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetSid(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.Sid = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetPlatformType(v int64) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.PlatformType = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetActivityId(v int64) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.ActivityId = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetUsedStoreId(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.UsedStoreId = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetPid(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.Pid = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetRelationOrderId(v int64) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.RelationOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetFlowType(v int64) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.FlowType = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetOrderItemStatus(v int64) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.OrderItemStatus = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetActivityInfoRemarkList(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.ActivityInfoRemarkList = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO) SetChannelRightId(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO { + s.ChannelRightId = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO.go new file mode 100644 index 0000000..6bd91db --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO.go @@ -0,0 +1,148 @@ +package domain + +type AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO struct { + /* + 商品标题 */ + Title *string `json:"title,omitempty" ` + + /* + 商品图片url */ + PicUrl *string `json:"pic_url,omitempty" ` + + /* + 店铺名称 */ + ShopName *string `json:"shop_name,omitempty" ` + + /* + 付款金额 */ + PayAmount *string `json:"pay_amount,omitempty" ` + + /* + 订单结算时间 */ + SettleTime *string `json:"settle_time,omitempty" ` + + /* + 维权创建时间 */ + ExplainStartTime *string `json:"explain_start_time,omitempty" ` + + /* + 维权结束时间 */ + ExplainEndTime *string `json:"explain_end_time,omitempty" ` + + /* + 订单流水号 */ + SerialNo *string `json:"serial_no,omitempty" ` + + /* + 主商品ID,针对CPS订单 */ + MainItemId *string `json:"main_item_id,omitempty" ` + + /* + 主商品信息,针对CPS订单 */ + MainItemTitle *string `json:"main_item_title,omitempty" ` + + /* + 维权状态,0.待申诉 1.待审核 2.审核中 3.申诉成功 4.申诉失败 5.申诉过期 */ + ExplainState *string `json:"explain_state,omitempty" ` + + /* + 维权成功后的返佣状态,0-待返回 1-已返回 */ + ReturnCommissionState *int64 `json:"return_commission_state,omitempty" ` + + /* + 渠道应结算金额 */ + Settle *string `json:"settle,omitempty" ` + + /* + 更新时间 */ + GmtModified *string `json:"gmt_modified,omitempty" ` + + /* + 会员标识 */ + Sid *string `json:"sid,omitempty" ` + + /* + 1口碑,2饿了么 */ + PlatformType *int64 `json:"platform_type,omitempty" ` + + /* + 活动ID */ + ActivityId *int64 `json:"activity_id,omitempty" ` + + /* + 订单号 */ + BizOrderId *string `json:"biz_order_id,omitempty" ` +} + +func (s *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO) SetTitle(v string) *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO { + s.Title = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO) SetPicUrl(v string) *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO { + s.PicUrl = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO) SetShopName(v string) *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO { + s.ShopName = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO) SetPayAmount(v string) *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO { + s.PayAmount = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO) SetSettleTime(v string) *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO { + s.SettleTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO) SetExplainStartTime(v string) *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO { + s.ExplainStartTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO) SetExplainEndTime(v string) *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO { + s.ExplainEndTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO) SetSerialNo(v string) *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO { + s.SerialNo = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO) SetMainItemId(v string) *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO { + s.MainItemId = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO) SetMainItemTitle(v string) *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO { + s.MainItemTitle = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO) SetExplainState(v string) *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO { + s.ExplainState = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO) SetReturnCommissionState(v int64) *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO { + s.ReturnCommissionState = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO) SetSettle(v string) *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO { + s.Settle = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO) SetGmtModified(v string) *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO { + s.GmtModified = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO) SetSid(v string) *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO { + s.Sid = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO) SetPlatformType(v int64) *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO { + s.PlatformType = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO) SetActivityId(v int64) *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO { + s.ActivityId = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO) SetBizOrderId(v string) *AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO { + s.BizOrderId = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO.go new file mode 100644 index 0000000..209c453 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO.go @@ -0,0 +1,196 @@ +package domain + +type AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO struct { + /* + 商品标题 */ + Title *string `json:"title,omitempty" ` + + /* + 商品图片url */ + PicUrl *string `json:"pic_url,omitempty" ` + + /* + 店铺名称 */ + ShopName *string `json:"shop_name,omitempty" ` + + /* + 付款金额 */ + PayAmount *string `json:"pay_amount,omitempty" ` + + /* + 订单结算时间 */ + SettleTime *string `json:"settle_time,omitempty" ` + + /* + 维权创建时间 */ + ExplainStartTime *string `json:"explain_start_time,omitempty" ` + + /* + 维权结束时间 */ + ExplainEndTime *string `json:"explain_end_time,omitempty" ` + + /* + 淘宝子单号 */ + BizOrderId *string `json:"biz_order_id,omitempty" ` + + /* + 淘宝主单号 */ + ParentOrderId *string `json:"parent_order_id,omitempty" ` + + /* + 主商品ID,针对CPS订单 */ + MainItemId *string `json:"main_item_id,omitempty" ` + + /* + 主商品信息,针对CPS订单 */ + MainItemTitle *string `json:"main_item_title,omitempty" ` + + /* + 维权状态,0-维权成功 1-维权创建 2-维权关闭 3-维权失败 */ + ExplainState *int64 `json:"explain_state,omitempty" ` + + /* + 维权成功后的佣金返回状态 0-待返回 1-已返回 */ + ReturnCommissionState *int64 `json:"return_commission_state,omitempty" ` + + /* + 维权退款金额 */ + RefundAmount *string `json:"refund_amount,omitempty" ` + + /* + 应返回商家金额 */ + Settle *string `json:"settle,omitempty" ` + + /* + 更新时间 */ + GmtModified *string `json:"gmt_modified,omitempty" ` + + /* + 会员标识 */ + Sid *string `json:"sid,omitempty" ` + + /* + 1口碑,2饿了么 */ + PlatformType *int64 `json:"platform_type,omitempty" ` + + /* + 活动ID */ + ActivityId *int64 `json:"activity_id,omitempty" ` + + /* + pid */ + Pid *string `json:"pid,omitempty" ` + + /* + 卡券订单号 */ + RelationOrderId *int64 `json:"relation_order_id,omitempty" ` + + /* + 场景值,7卡券订单,8卡券核销订单 */ + FlowType *int64 `json:"flow_type,omitempty" ` + + /* + 活动信息明细 */ + ActivityInfoRemarkList *string `json:"activity_info_remark_list,omitempty" ` + + /* + 权益ID(flow_type=10或11时为媒体出资活动ID) */ + ChannelRightId *string `json:"channel_right_id,omitempty" ` +} + +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetTitle(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.Title = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetPicUrl(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.PicUrl = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetShopName(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.ShopName = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetPayAmount(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.PayAmount = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetSettleTime(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.SettleTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetExplainStartTime(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.ExplainStartTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetExplainEndTime(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.ExplainEndTime = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetBizOrderId(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.BizOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetParentOrderId(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.ParentOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetMainItemId(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.MainItemId = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetMainItemTitle(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.MainItemTitle = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetExplainState(v int64) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.ExplainState = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetReturnCommissionState(v int64) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.ReturnCommissionState = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetRefundAmount(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.RefundAmount = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetSettle(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.Settle = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetGmtModified(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.GmtModified = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetSid(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.Sid = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetPlatformType(v int64) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.PlatformType = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetActivityId(v int64) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.ActivityId = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetPid(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.Pid = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetRelationOrderId(v int64) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.RelationOrderId = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetFlowType(v int64) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.FlowType = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetActivityInfoRemarkList(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.ActivityInfoRemarkList = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO) SetChannelRightId(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO { + s.ChannelRightId = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionMediaZoneAddZoneInfoDTO.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionMediaZoneAddZoneInfoDTO.go new file mode 100644 index 0000000..8f1d66e --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionMediaZoneAddZoneInfoDTO.go @@ -0,0 +1,20 @@ +package domain + +type AlibabaAlscUnionMediaZoneAddZoneInfoDTO struct { + /* + 推广位名称 */ + Name *string `json:"name,omitempty" ` + + /* + 推广位pid */ + Pid *string `json:"pid,omitempty" ` +} + +func (s *AlibabaAlscUnionMediaZoneAddZoneInfoDTO) SetName(v string) *AlibabaAlscUnionMediaZoneAddZoneInfoDTO { + s.Name = &v + return s +} +func (s *AlibabaAlscUnionMediaZoneAddZoneInfoDTO) SetPid(v string) *AlibabaAlscUnionMediaZoneAddZoneInfoDTO { + s.Pid = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/AlibabaAlscUnionMediaZoneGetZoneInfoDTO.go b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionMediaZoneGetZoneInfoDTO.go new file mode 100644 index 0000000..4584f54 --- /dev/null +++ b/taobao/topsdk/defaultability/domain/AlibabaAlscUnionMediaZoneGetZoneInfoDTO.go @@ -0,0 +1,20 @@ +package domain + +type AlibabaAlscUnionMediaZoneGetZoneInfoDTO struct { + /* + 资源位名称 */ + Name *string `json:"name,omitempty" ` + + /* + 资源位pid */ + Pid *string `json:"pid,omitempty" ` +} + +func (s *AlibabaAlscUnionMediaZoneGetZoneInfoDTO) SetName(v string) *AlibabaAlscUnionMediaZoneGetZoneInfoDTO { + s.Name = &v + return s +} +func (s *AlibabaAlscUnionMediaZoneGetZoneInfoDTO) SetPid(v string) *AlibabaAlscUnionMediaZoneGetZoneInfoDTO { + s.Pid = &v + return s +} diff --git a/taobao/topsdk/defaultability/domain/TaobaoTmcUserGetTmcUser.go b/taobao/topsdk/defaultability/domain/TaobaoTmcUserGetTmcUser.go new file mode 100644 index 0000000..33c2fff --- /dev/null +++ b/taobao/topsdk/defaultability/domain/TaobaoTmcUserGetTmcUser.go @@ -0,0 +1,72 @@ +package domain + +import ( + zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" +) + +type TaobaoTmcUserGetTmcUser struct { + /* + 用户首次开通时间 */ + Created *zhios_third_party_utils.LocalTime `json:"created,omitempty" ` + + /* + 接收用户消息的组名 */ + GroupName *string `json:"group_name,omitempty" ` + + /* + 用户授权是否有效,true表示授权有效,false表示授权过期 */ + IsValid *bool `json:"is_valid,omitempty" ` + + /* + 用户最后开通时间 */ + Modified *zhios_third_party_utils.LocalTime `json:"modified,omitempty" ` + + /* + 用户开通的消息类型列表。如果为空表示应用开通的所有类型 */ + Topics *[]string `json:"topics,omitempty" ` + + /* + 用户ID */ + UserId *int64 `json:"user_id,omitempty" ` + + /* + 用户昵称 */ + UserNick *string `json:"user_nick,omitempty" ` + + /* + 用户所属的平台类型,tbUIC:淘宝用户; icbu: icbu用户 */ + UserPlatform *string `json:"user_platform,omitempty" ` +} + +func (s *TaobaoTmcUserGetTmcUser) SetCreated(v zhios_third_party_utils.LocalTime) *TaobaoTmcUserGetTmcUser { + s.Created = &v + return s +} +func (s *TaobaoTmcUserGetTmcUser) SetGroupName(v string) *TaobaoTmcUserGetTmcUser { + s.GroupName = &v + return s +} +func (s *TaobaoTmcUserGetTmcUser) SetIsValid(v bool) *TaobaoTmcUserGetTmcUser { + s.IsValid = &v + return s +} +func (s *TaobaoTmcUserGetTmcUser) SetModified(v zhios_third_party_utils.LocalTime) *TaobaoTmcUserGetTmcUser { + s.Modified = &v + return s +} +func (s *TaobaoTmcUserGetTmcUser) SetTopics(v []string) *TaobaoTmcUserGetTmcUser { + s.Topics = &v + return s +} +func (s *TaobaoTmcUserGetTmcUser) SetUserId(v int64) *TaobaoTmcUserGetTmcUser { + s.UserId = &v + return s +} +func (s *TaobaoTmcUserGetTmcUser) SetUserNick(v string) *TaobaoTmcUserGetTmcUser { + s.UserNick = &v + return s +} +func (s *TaobaoTmcUserGetTmcUser) SetUserPlatform(v string) *TaobaoTmcUserGetTmcUser { + s.UserPlatform = &v + return s +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionElemePromotionOfficialactivityGetRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionElemePromotionOfficialactivityGetRequest.go new file mode 100644 index 0000000..5616f2f --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionElemePromotionOfficialactivityGetRequest.go @@ -0,0 +1,30 @@ +package request + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" + zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" +) + +type AlibabaAlscUnionElemePromotionOfficialactivityGetRequest struct { + /* + 查询rquest */ + QueryRequest *domain.AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest `json:"query_request" required:"true" ` +} + +func (s *AlibabaAlscUnionElemePromotionOfficialactivityGetRequest) SetQueryRequest(v domain.AlibabaAlscUnionElemePromotionOfficialactivityGetActivityRequest) *AlibabaAlscUnionElemePromotionOfficialactivityGetRequest { + s.QueryRequest = &v + return s +} + +func (req *AlibabaAlscUnionElemePromotionOfficialactivityGetRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.QueryRequest != nil { + paramMap["query_request"] = zhios_third_party_utils.ConvertStruct(*req.QueryRequest) + } + return paramMap +} + +func (req *AlibabaAlscUnionElemePromotionOfficialactivityGetRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionElemePromotionStorepromotionGetRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionElemePromotionStorepromotionGetRequest.go new file mode 100644 index 0000000..5bd53c9 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionElemePromotionStorepromotionGetRequest.go @@ -0,0 +1,30 @@ +package request + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" + zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" +) + +type AlibabaAlscUnionElemePromotionStorepromotionGetRequest struct { + /* + 查询rquest */ + QueryRequest *domain.AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest `json:"query_request" required:"true" ` +} + +func (s *AlibabaAlscUnionElemePromotionStorepromotionGetRequest) SetQueryRequest(v domain.AlibabaAlscUnionElemePromotionStorepromotionGetSingleStorePromotionRequest) *AlibabaAlscUnionElemePromotionStorepromotionGetRequest { + s.QueryRequest = &v + return s +} + +func (req *AlibabaAlscUnionElemePromotionStorepromotionGetRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.QueryRequest != nil { + paramMap["query_request"] = zhios_third_party_utils.ConvertStruct(*req.QueryRequest) + } + return paramMap +} + +func (req *AlibabaAlscUnionElemePromotionStorepromotionGetRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionElemePromotionStorepromotionQueryRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionElemePromotionStorepromotionQueryRequest.go new file mode 100644 index 0000000..a6d2fdd --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionElemePromotionStorepromotionQueryRequest.go @@ -0,0 +1,30 @@ +package request + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" + zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" +) + +type AlibabaAlscUnionElemePromotionStorepromotionQueryRequest struct { + /* + 查询rquest */ + QueryRequest *domain.AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest `json:"query_request" required:"true" ` +} + +func (s *AlibabaAlscUnionElemePromotionStorepromotionQueryRequest) SetQueryRequest(v domain.AlibabaAlscUnionElemePromotionStorepromotionQueryPromotionQueryRequest) *AlibabaAlscUnionElemePromotionStorepromotionQueryRequest { + s.QueryRequest = &v + return s +} + +func (req *AlibabaAlscUnionElemePromotionStorepromotionQueryRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.QueryRequest != nil { + paramMap["query_request"] = zhios_third_party_utils.ConvertStruct(*req.QueryRequest) + } + return paramMap +} + +func (req *AlibabaAlscUnionElemePromotionStorepromotionQueryRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemDetailGetRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemDetailGetRequest.go new file mode 100644 index 0000000..9df4ad6 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemDetailGetRequest.go @@ -0,0 +1,30 @@ +package request + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" + zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" +) + +type AlibabaAlscUnionKbBbtItemDetailGetRequest struct { + /* + 爆爆团商品详情rquest */ + QueryRequest *domain.AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailRequest `json:"query_request" required:"true" ` +} + +func (s *AlibabaAlscUnionKbBbtItemDetailGetRequest) SetQueryRequest(v domain.AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailRequest) *AlibabaAlscUnionKbBbtItemDetailGetRequest { + s.QueryRequest = &v + return s +} + +func (req *AlibabaAlscUnionKbBbtItemDetailGetRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.QueryRequest != nil { + paramMap["query_request"] = zhios_third_party_utils.ConvertStruct(*req.QueryRequest) + } + return paramMap +} + +func (req *AlibabaAlscUnionKbBbtItemDetailGetRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemPromotionFilterListRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemPromotionFilterListRequest.go new file mode 100644 index 0000000..3414242 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemPromotionFilterListRequest.go @@ -0,0 +1,45 @@ +package request + +type AlibabaAlscUnionKbBbtItemPromotionFilterListRequest struct { + /* + 获取筛选项集合的类型。category类目列表,city城市列表 */ + FilterType *string `json:"filter_type" required:"true" ` + /* + 产品线,固定bbt defalutValue��bbt */ + BizType *string `json:"biz_type,omitempty" required:"false" ` + /* + 固定2cps defalutValue��2 */ + BizUnit *int64 `json:"biz_unit,omitempty" required:"false" ` +} + +func (s *AlibabaAlscUnionKbBbtItemPromotionFilterListRequest) SetFilterType(v string) *AlibabaAlscUnionKbBbtItemPromotionFilterListRequest { + s.FilterType = &v + return s +} +func (s *AlibabaAlscUnionKbBbtItemPromotionFilterListRequest) SetBizType(v string) *AlibabaAlscUnionKbBbtItemPromotionFilterListRequest { + s.BizType = &v + return s +} +func (s *AlibabaAlscUnionKbBbtItemPromotionFilterListRequest) SetBizUnit(v int64) *AlibabaAlscUnionKbBbtItemPromotionFilterListRequest { + s.BizUnit = &v + return s +} + +func (req *AlibabaAlscUnionKbBbtItemPromotionFilterListRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.FilterType != nil { + paramMap["filter_type"] = *req.FilterType + } + if req.BizType != nil { + paramMap["biz_type"] = *req.BizType + } + if req.BizUnit != nil { + paramMap["biz_unit"] = *req.BizUnit + } + return paramMap +} + +func (req *AlibabaAlscUnionKbBbtItemPromotionFilterListRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemQueryRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemQueryRequest.go new file mode 100644 index 0000000..dcb3f7e --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemQueryRequest.go @@ -0,0 +1,30 @@ +package request + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" + zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" +) + +type AlibabaAlscUnionKbBbtItemQueryRequest struct { + /* + 爆爆团商品查询rquest */ + QueryRequest *domain.AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest `json:"query_request" required:"true" ` +} + +func (s *AlibabaAlscUnionKbBbtItemQueryRequest) SetQueryRequest(v domain.AlibabaAlscUnionKbBbtItemQueryBbtItemQueryRequest) *AlibabaAlscUnionKbBbtItemQueryRequest { + s.QueryRequest = &v + return s +} + +func (req *AlibabaAlscUnionKbBbtItemQueryRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.QueryRequest != nil { + paramMap["query_request"] = zhios_third_party_utils.ConvertStruct(*req.QueryRequest) + } + return paramMap +} + +func (req *AlibabaAlscUnionKbBbtItemQueryRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemStoreDetailGetRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemStoreDetailGetRequest.go new file mode 100644 index 0000000..cd36f46 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemStoreDetailGetRequest.go @@ -0,0 +1,30 @@ +package request + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" + zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" +) + +type AlibabaAlscUnionKbBbtItemStoreDetailGetRequest struct { + /* + 门店详情查询rquest */ + QueryRequest *domain.AlibabaAlscUnionKbBbtItemStoreDetailGetBbtItemShopDetailRequest `json:"query_request" required:"true" ` +} + +func (s *AlibabaAlscUnionKbBbtItemStoreDetailGetRequest) SetQueryRequest(v domain.AlibabaAlscUnionKbBbtItemStoreDetailGetBbtItemShopDetailRequest) *AlibabaAlscUnionKbBbtItemStoreDetailGetRequest { + s.QueryRequest = &v + return s +} + +func (req *AlibabaAlscUnionKbBbtItemStoreDetailGetRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.QueryRequest != nil { + paramMap["query_request"] = zhios_third_party_utils.ConvertStruct(*req.QueryRequest) + } + return paramMap +} + +func (req *AlibabaAlscUnionKbBbtItemStoreDetailGetRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemStoreRelationQueryRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemStoreRelationQueryRequest.go new file mode 100644 index 0000000..77d22f7 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbBbtItemStoreRelationQueryRequest.go @@ -0,0 +1,30 @@ +package request + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" + zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" +) + +type AlibabaAlscUnionKbBbtItemStoreRelationQueryRequest struct { + /* + 商品门店关系查询rquest */ + QueryRequest *domain.AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationRequest `json:"query_request" required:"true" ` +} + +func (s *AlibabaAlscUnionKbBbtItemStoreRelationQueryRequest) SetQueryRequest(v domain.AlibabaAlscUnionKbBbtItemStoreRelationQueryBbtItemShopRelationRequest) *AlibabaAlscUnionKbBbtItemStoreRelationQueryRequest { + s.QueryRequest = &v + return s +} + +func (req *AlibabaAlscUnionKbBbtItemStoreRelationQueryRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.QueryRequest != nil { + paramMap["query_request"] = zhios_third_party_utils.ConvertStruct(*req.QueryRequest) + } + return paramMap +} + +func (req *AlibabaAlscUnionKbBbtItemStoreRelationQueryRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbCommonEncryptRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbCommonEncryptRequest.go new file mode 100644 index 0000000..4a8ad4f --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbCommonEncryptRequest.go @@ -0,0 +1,30 @@ +package request + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" + zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" +) + +type AlibabaAlscUnionKbCommonEncryptRequest struct { + /* + 待加密对象 */ + EncryptModel *domain.AlibabaAlscUnionKbCommonEncryptBlowfishModel `json:"encrypt_model,omitempty" required:"false" ` +} + +func (s *AlibabaAlscUnionKbCommonEncryptRequest) SetEncryptModel(v domain.AlibabaAlscUnionKbCommonEncryptBlowfishModel) *AlibabaAlscUnionKbCommonEncryptRequest { + s.EncryptModel = &v + return s +} + +func (req *AlibabaAlscUnionKbCommonEncryptRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.EncryptModel != nil { + paramMap["encrypt_model"] = zhios_third_party_utils.ConvertStruct(*req.EncryptModel) + } + return paramMap +} + +func (req *AlibabaAlscUnionKbCommonEncryptRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemDetailGetRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemDetailGetRequest.go new file mode 100644 index 0000000..b665b76 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemDetailGetRequest.go @@ -0,0 +1,30 @@ +package request + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" + zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" +) + +type AlibabaAlscUnionKbItemDetailGetRequest struct { + /* + 商品详情rquest */ + QueryRequest *domain.AlibabaAlscUnionKbItemDetailGetKbItemDetailRequest `json:"query_request" required:"true" ` +} + +func (s *AlibabaAlscUnionKbItemDetailGetRequest) SetQueryRequest(v domain.AlibabaAlscUnionKbItemDetailGetKbItemDetailRequest) *AlibabaAlscUnionKbItemDetailGetRequest { + s.QueryRequest = &v + return s +} + +func (req *AlibabaAlscUnionKbItemDetailGetRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.QueryRequest != nil { + paramMap["query_request"] = zhios_third_party_utils.ConvertStruct(*req.QueryRequest) + } + return paramMap +} + +func (req *AlibabaAlscUnionKbItemDetailGetRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemPromotionFilterListRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemPromotionFilterListRequest.go new file mode 100644 index 0000000..063d6e5 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemPromotionFilterListRequest.go @@ -0,0 +1,35 @@ +package request + +type AlibabaAlscUnionKbItemPromotionFilterListRequest struct { + /* + 获取筛选项集合的类型 */ + FilterType *string `json:"filter_type" required:"true" ` + /* + 1-cpa,2-cps.默认不填为cpa */ + BizUnit *int64 `json:"biz_unit,omitempty" required:"false" ` +} + +func (s *AlibabaAlscUnionKbItemPromotionFilterListRequest) SetFilterType(v string) *AlibabaAlscUnionKbItemPromotionFilterListRequest { + s.FilterType = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionFilterListRequest) SetBizUnit(v int64) *AlibabaAlscUnionKbItemPromotionFilterListRequest { + s.BizUnit = &v + return s +} + +func (req *AlibabaAlscUnionKbItemPromotionFilterListRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.FilterType != nil { + paramMap["filter_type"] = *req.FilterType + } + if req.BizUnit != nil { + paramMap["biz_unit"] = *req.BizUnit + } + return paramMap +} + +func (req *AlibabaAlscUnionKbItemPromotionFilterListRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemPromotionRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemPromotionRequest.go new file mode 100644 index 0000000..ec299fe --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemPromotionRequest.go @@ -0,0 +1,135 @@ +package request + +type AlibabaAlscUnionKbItemPromotionRequest struct { + /* + 页码,默认第一页,取值范围1~50 */ + PageNumber *int64 `json:"page_number" required:"true" ` + /* + 排序类型 normal-默认排序 reservePrice-折后价从高到低 commission-佣金从高到低 totalSales-月销量从高到低 */ + SortType *string `json:"sort_type,omitempty" required:"false" ` + /* + 每页返回数据大小,默认20,最大返回20 */ + PageSize *int64 `json:"page_size" required:"true" ` + /* + 推广参数 */ + Pid *string `json:"pid" required:"true" ` + /* + 用来分页,翻页时将上一次结果的sessionId带下来 */ + SessionId *string `json:"session_id,omitempty" required:"false" ` + /* + 推广物料结算模型 1-cpa 2-cps,3spu */ + SettleType *int64 `json:"settle_type" required:"true" ` + /* + 类目筛选,多个类目逗号分隔 */ + FilterCategoryIds *string `json:"filter_category_ids,omitempty" required:"false" ` + /* + 城市id(国标)筛选,多个城市逗号分隔 */ + FilterCityIds *string `json:"filter_city_ids,omitempty" required:"false" ` + /* + 关键词搜索,多个词逗号分割 */ + SearchKeyword *string `json:"search_keyword,omitempty" required:"false" ` + /* + 指定itemId查询推广信息,多个逗号分割 */ + HitItemIds *string `json:"hit_item_ids,omitempty" required:"false" ` + /* + 第三方会员id扩展 */ + Sid *string `json:"sid,omitempty" required:"false" ` + /* + 商品可售卖的端类型。1支付宝端商品,2微信端商品,3全部 */ + ItemType *int64 `json:"item_type,omitempty" required:"false" ` +} + +func (s *AlibabaAlscUnionKbItemPromotionRequest) SetPageNumber(v int64) *AlibabaAlscUnionKbItemPromotionRequest { + s.PageNumber = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionRequest) SetSortType(v string) *AlibabaAlscUnionKbItemPromotionRequest { + s.SortType = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionRequest) SetPageSize(v int64) *AlibabaAlscUnionKbItemPromotionRequest { + s.PageSize = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionRequest) SetPid(v string) *AlibabaAlscUnionKbItemPromotionRequest { + s.Pid = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionRequest) SetSessionId(v string) *AlibabaAlscUnionKbItemPromotionRequest { + s.SessionId = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionRequest) SetSettleType(v int64) *AlibabaAlscUnionKbItemPromotionRequest { + s.SettleType = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionRequest) SetFilterCategoryIds(v string) *AlibabaAlscUnionKbItemPromotionRequest { + s.FilterCategoryIds = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionRequest) SetFilterCityIds(v string) *AlibabaAlscUnionKbItemPromotionRequest { + s.FilterCityIds = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionRequest) SetSearchKeyword(v string) *AlibabaAlscUnionKbItemPromotionRequest { + s.SearchKeyword = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionRequest) SetHitItemIds(v string) *AlibabaAlscUnionKbItemPromotionRequest { + s.HitItemIds = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionRequest) SetSid(v string) *AlibabaAlscUnionKbItemPromotionRequest { + s.Sid = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionRequest) SetItemType(v int64) *AlibabaAlscUnionKbItemPromotionRequest { + s.ItemType = &v + return s +} + +func (req *AlibabaAlscUnionKbItemPromotionRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.PageNumber != nil { + paramMap["page_number"] = *req.PageNumber + } + if req.SortType != nil { + paramMap["sort_type"] = *req.SortType + } + if req.PageSize != nil { + paramMap["page_size"] = *req.PageSize + } + if req.Pid != nil { + paramMap["pid"] = *req.Pid + } + if req.SessionId != nil { + paramMap["session_id"] = *req.SessionId + } + if req.SettleType != nil { + paramMap["settle_type"] = *req.SettleType + } + if req.FilterCategoryIds != nil { + paramMap["filter_category_ids"] = *req.FilterCategoryIds + } + if req.FilterCityIds != nil { + paramMap["filter_city_ids"] = *req.FilterCityIds + } + if req.SearchKeyword != nil { + paramMap["search_keyword"] = *req.SearchKeyword + } + if req.HitItemIds != nil { + paramMap["hit_item_ids"] = *req.HitItemIds + } + if req.Sid != nil { + paramMap["sid"] = *req.Sid + } + if req.ItemType != nil { + paramMap["item_type"] = *req.ItemType + } + return paramMap +} + +func (req *AlibabaAlscUnionKbItemPromotionRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemPromotionShareCreateRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemPromotionShareCreateRequest.go new file mode 100644 index 0000000..7c5499c --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemPromotionShareCreateRequest.go @@ -0,0 +1,115 @@ +package request + +type AlibabaAlscUnionKbItemPromotionShareCreateRequest struct { + /* + 推广位pid */ + Pid *string `json:"pid" required:"true" ` + /* + 商品ID,默认CPA的品,如果推广其他业务单元的品,请填写对应的biz_unit */ + ItemId *string `json:"item_id" required:"true" ` + /* + 业务单元,1-CPA,2-CPS,3-SPU。默认1-CPA defalutValue��1 */ + BizUnit *int64 `json:"biz_unit,omitempty" required:"false" ` + /* + 废弃 defalutValue��false */ + IncludeMiniQrCode *bool `json:"include_mini_qr_code,omitempty" required:"false" ` + /* + 废弃 defalutValue��false */ + IncludeMiniQrCodeHyaline *bool `json:"include_mini_qr_code_hyaline,omitempty" required:"false" ` + /* + 废弃 defalutValue��true */ + IncludeImgUrl *bool `json:"include_img_url,omitempty" required:"false" ` + /* + 第三方会员id扩展 */ + Sid *string `json:"sid,omitempty" required:"false" ` + /* + 是否合成微信推广图 defalutValue��true */ + IncludeWxImgUrl *bool `json:"include_wx_img_url,omitempty" required:"false" ` + /* + 是否合成支付宝推广图 defalutValue��true */ + IncludeAlipayImgUrl *bool `json:"include_alipay_img_url,omitempty" required:"false" ` + /* + 是否返回吱口令 defalutValue��true */ + IncludeAlipayWathword *bool `json:"include_alipay_wathword,omitempty" required:"false" ` +} + +func (s *AlibabaAlscUnionKbItemPromotionShareCreateRequest) SetPid(v string) *AlibabaAlscUnionKbItemPromotionShareCreateRequest { + s.Pid = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionShareCreateRequest) SetItemId(v string) *AlibabaAlscUnionKbItemPromotionShareCreateRequest { + s.ItemId = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionShareCreateRequest) SetBizUnit(v int64) *AlibabaAlscUnionKbItemPromotionShareCreateRequest { + s.BizUnit = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionShareCreateRequest) SetIncludeMiniQrCode(v bool) *AlibabaAlscUnionKbItemPromotionShareCreateRequest { + s.IncludeMiniQrCode = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionShareCreateRequest) SetIncludeMiniQrCodeHyaline(v bool) *AlibabaAlscUnionKbItemPromotionShareCreateRequest { + s.IncludeMiniQrCodeHyaline = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionShareCreateRequest) SetIncludeImgUrl(v bool) *AlibabaAlscUnionKbItemPromotionShareCreateRequest { + s.IncludeImgUrl = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionShareCreateRequest) SetSid(v string) *AlibabaAlscUnionKbItemPromotionShareCreateRequest { + s.Sid = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionShareCreateRequest) SetIncludeWxImgUrl(v bool) *AlibabaAlscUnionKbItemPromotionShareCreateRequest { + s.IncludeWxImgUrl = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionShareCreateRequest) SetIncludeAlipayImgUrl(v bool) *AlibabaAlscUnionKbItemPromotionShareCreateRequest { + s.IncludeAlipayImgUrl = &v + return s +} +func (s *AlibabaAlscUnionKbItemPromotionShareCreateRequest) SetIncludeAlipayWathword(v bool) *AlibabaAlscUnionKbItemPromotionShareCreateRequest { + s.IncludeAlipayWathword = &v + return s +} + +func (req *AlibabaAlscUnionKbItemPromotionShareCreateRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.Pid != nil { + paramMap["pid"] = *req.Pid + } + if req.ItemId != nil { + paramMap["item_id"] = *req.ItemId + } + if req.BizUnit != nil { + paramMap["biz_unit"] = *req.BizUnit + } + if req.IncludeMiniQrCode != nil { + paramMap["include_mini_qr_code"] = *req.IncludeMiniQrCode + } + if req.IncludeMiniQrCodeHyaline != nil { + paramMap["include_mini_qr_code_hyaline"] = *req.IncludeMiniQrCodeHyaline + } + if req.IncludeImgUrl != nil { + paramMap["include_img_url"] = *req.IncludeImgUrl + } + if req.Sid != nil { + paramMap["sid"] = *req.Sid + } + if req.IncludeWxImgUrl != nil { + paramMap["include_wx_img_url"] = *req.IncludeWxImgUrl + } + if req.IncludeAlipayImgUrl != nil { + paramMap["include_alipay_img_url"] = *req.IncludeAlipayImgUrl + } + if req.IncludeAlipayWathword != nil { + paramMap["include_alipay_wathword"] = *req.IncludeAlipayWathword + } + return paramMap +} + +func (req *AlibabaAlscUnionKbItemPromotionShareCreateRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemQueryRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemQueryRequest.go new file mode 100644 index 0000000..bcdd087 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemQueryRequest.go @@ -0,0 +1,135 @@ +package request + +type AlibabaAlscUnionKbItemQueryRequest struct { + /* + 页码(默认1) defalutValue��1 */ + PageNumber *int64 `json:"page_number" required:"true" ` + /* + 每页数目(默认10) defalutValue��10 */ + PageSize *int64 `json:"page_size" required:"true" ` + /* + 会话ID(分页场景首次请求结果返回,后续请求必须携带,服务根据session_id相同请求次数自动翻页返回) */ + SessionId *string `json:"session_id,omitempty" required:"false" ` + /* + 场景类型("kb_natural";) */ + BizType *string `json:"biz_type" required:"true" ` + /* + 排序类型,默认normal("normal"-门店创建时间倒序;"distance_asc"-距离最近) */ + SortType *string `json:"sort_type,omitempty" required:"false" ` + /* + 推广位 */ + Pid *string `json:"pid" required:"true" ` + /* + 淘宝二级类目(逗号分隔) */ + TbCategory2Ids *string `json:"tb_category_2_ids,omitempty" required:"false" ` + /* + 淘宝三级类目(逗号分隔) */ + TbCategory3Ids *string `json:"tb_category_3_ids,omitempty" required:"false" ` + /* + 城市ID */ + CityId *string `json:"city_id,omitempty" required:"false" ` + /* + 经度(经纬度、范围配合使用) */ + Longitude *string `json:"longitude,omitempty" required:"false" ` + /* + 纬度(经纬度、范围配合使用) */ + Latitude *string `json:"latitude,omitempty" required:"false" ` + /* + 范围(单位:米,经纬度、范围配合使用) */ + Range *int64 `json:"range,omitempty" required:"false" ` +} + +func (s *AlibabaAlscUnionKbItemQueryRequest) SetPageNumber(v int64) *AlibabaAlscUnionKbItemQueryRequest { + s.PageNumber = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryRequest) SetPageSize(v int64) *AlibabaAlscUnionKbItemQueryRequest { + s.PageSize = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryRequest) SetSessionId(v string) *AlibabaAlscUnionKbItemQueryRequest { + s.SessionId = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryRequest) SetBizType(v string) *AlibabaAlscUnionKbItemQueryRequest { + s.BizType = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryRequest) SetSortType(v string) *AlibabaAlscUnionKbItemQueryRequest { + s.SortType = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryRequest) SetPid(v string) *AlibabaAlscUnionKbItemQueryRequest { + s.Pid = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryRequest) SetTbCategory2Ids(v string) *AlibabaAlscUnionKbItemQueryRequest { + s.TbCategory2Ids = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryRequest) SetTbCategory3Ids(v string) *AlibabaAlscUnionKbItemQueryRequest { + s.TbCategory3Ids = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryRequest) SetCityId(v string) *AlibabaAlscUnionKbItemQueryRequest { + s.CityId = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryRequest) SetLongitude(v string) *AlibabaAlscUnionKbItemQueryRequest { + s.Longitude = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryRequest) SetLatitude(v string) *AlibabaAlscUnionKbItemQueryRequest { + s.Latitude = &v + return s +} +func (s *AlibabaAlscUnionKbItemQueryRequest) SetRange(v int64) *AlibabaAlscUnionKbItemQueryRequest { + s.Range = &v + return s +} + +func (req *AlibabaAlscUnionKbItemQueryRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.PageNumber != nil { + paramMap["page_number"] = *req.PageNumber + } + if req.PageSize != nil { + paramMap["page_size"] = *req.PageSize + } + if req.SessionId != nil { + paramMap["session_id"] = *req.SessionId + } + if req.BizType != nil { + paramMap["biz_type"] = *req.BizType + } + if req.SortType != nil { + paramMap["sort_type"] = *req.SortType + } + if req.Pid != nil { + paramMap["pid"] = *req.Pid + } + if req.TbCategory2Ids != nil { + paramMap["tb_category_2_ids"] = *req.TbCategory2Ids + } + if req.TbCategory3Ids != nil { + paramMap["tb_category_3_ids"] = *req.TbCategory3Ids + } + if req.CityId != nil { + paramMap["city_id"] = *req.CityId + } + if req.Longitude != nil { + paramMap["longitude"] = *req.Longitude + } + if req.Latitude != nil { + paramMap["latitude"] = *req.Latitude + } + if req.Range != nil { + paramMap["range"] = *req.Range + } + return paramMap +} + +func (req *AlibabaAlscUnionKbItemQueryRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemStoreDetailGetRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemStoreDetailGetRequest.go new file mode 100644 index 0000000..af9f4c3 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemStoreDetailGetRequest.go @@ -0,0 +1,30 @@ +package request + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" + zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" +) + +type AlibabaAlscUnionKbItemStoreDetailGetRequest struct { + /* + 门店详情查询rquest */ + QueryRequest *domain.AlibabaAlscUnionKbItemStoreDetailGetKbItemShopDetailRequest `json:"query_request" required:"true" ` +} + +func (s *AlibabaAlscUnionKbItemStoreDetailGetRequest) SetQueryRequest(v domain.AlibabaAlscUnionKbItemStoreDetailGetKbItemShopDetailRequest) *AlibabaAlscUnionKbItemStoreDetailGetRequest { + s.QueryRequest = &v + return s +} + +func (req *AlibabaAlscUnionKbItemStoreDetailGetRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.QueryRequest != nil { + paramMap["query_request"] = zhios_third_party_utils.ConvertStruct(*req.QueryRequest) + } + return paramMap +} + +func (req *AlibabaAlscUnionKbItemStoreDetailGetRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemStoreRelationQueryRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemStoreRelationQueryRequest.go new file mode 100644 index 0000000..7aeb465 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbItemStoreRelationQueryRequest.go @@ -0,0 +1,30 @@ +package request + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" + zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" +) + +type AlibabaAlscUnionKbItemStoreRelationQueryRequest struct { + /* + 商品门店关系查询rquest */ + QueryRequest *domain.AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationRequest `json:"query_request" required:"true" ` +} + +func (s *AlibabaAlscUnionKbItemStoreRelationQueryRequest) SetQueryRequest(v domain.AlibabaAlscUnionKbItemStoreRelationQueryKbItemShopRelationRequest) *AlibabaAlscUnionKbItemStoreRelationQueryRequest { + s.QueryRequest = &v + return s +} + +func (req *AlibabaAlscUnionKbItemStoreRelationQueryRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.QueryRequest != nil { + paramMap["query_request"] = zhios_third_party_utils.ConvertStruct(*req.QueryRequest) + } + return paramMap +} + +func (req *AlibabaAlscUnionKbItemStoreRelationQueryRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbOrderCreateRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbOrderCreateRequest.go new file mode 100644 index 0000000..e77b1b6 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbOrderCreateRequest.go @@ -0,0 +1,30 @@ +package request + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" + zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" +) + +type AlibabaAlscUnionKbOrderCreateRequest struct { + /* + 订单对象 */ + OrderDto *domain.AlibabaAlscUnionKbOrderCreateOrderDto `json:"order_dto" required:"true" ` +} + +func (s *AlibabaAlscUnionKbOrderCreateRequest) SetOrderDto(v domain.AlibabaAlscUnionKbOrderCreateOrderDto) *AlibabaAlscUnionKbOrderCreateRequest { + s.OrderDto = &v + return s +} + +func (req *AlibabaAlscUnionKbOrderCreateRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.OrderDto != nil { + paramMap["order_dto"] = zhios_third_party_utils.ConvertStruct(*req.OrderDto) + } + return paramMap +} + +func (req *AlibabaAlscUnionKbOrderCreateRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbOrderPayRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbOrderPayRequest.go new file mode 100644 index 0000000..43c4854 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbOrderPayRequest.go @@ -0,0 +1,30 @@ +package request + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" + zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" +) + +type AlibabaAlscUnionKbOrderPayRequest struct { + /* + 订单支付对象 */ + OrderPayDto *domain.AlibabaAlscUnionKbOrderPayOrderPayDto `json:"order_pay_dto,omitempty" required:"false" ` +} + +func (s *AlibabaAlscUnionKbOrderPayRequest) SetOrderPayDto(v domain.AlibabaAlscUnionKbOrderPayOrderPayDto) *AlibabaAlscUnionKbOrderPayRequest { + s.OrderPayDto = &v + return s +} + +func (req *AlibabaAlscUnionKbOrderPayRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.OrderPayDto != nil { + paramMap["order_pay_dto"] = zhios_third_party_utils.ConvertStruct(*req.OrderPayDto) + } + return paramMap +} + +func (req *AlibabaAlscUnionKbOrderPayRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbOrderQueryRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbOrderQueryRequest.go new file mode 100644 index 0000000..39d6d7c --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbOrderQueryRequest.go @@ -0,0 +1,30 @@ +package request + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" + zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" +) + +type AlibabaAlscUnionKbOrderQueryRequest struct { + /* + 查询对象 */ + OrderQueryDto *domain.AlibabaAlscUnionKbOrderQueryOrderQueryDto `json:"order_query_dto" required:"true" ` +} + +func (s *AlibabaAlscUnionKbOrderQueryRequest) SetOrderQueryDto(v domain.AlibabaAlscUnionKbOrderQueryOrderQueryDto) *AlibabaAlscUnionKbOrderQueryRequest { + s.OrderQueryDto = &v + return s +} + +func (req *AlibabaAlscUnionKbOrderQueryRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.OrderQueryDto != nil { + paramMap["order_query_dto"] = zhios_third_party_utils.ConvertStruct(*req.OrderQueryDto) + } + return paramMap +} + +func (req *AlibabaAlscUnionKbOrderQueryRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbOrderRefundRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbOrderRefundRequest.go new file mode 100644 index 0000000..56b6522 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbOrderRefundRequest.go @@ -0,0 +1,30 @@ +package request + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" + zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" +) + +type AlibabaAlscUnionKbOrderRefundRequest struct { + /* + 退款对象 */ + OrderRefundDto *domain.AlibabaAlscUnionKbOrderRefundOrderRefundDto `json:"order_refund_dto" required:"true" ` +} + +func (s *AlibabaAlscUnionKbOrderRefundRequest) SetOrderRefundDto(v domain.AlibabaAlscUnionKbOrderRefundOrderRefundDto) *AlibabaAlscUnionKbOrderRefundRequest { + s.OrderRefundDto = &v + return s +} + +func (req *AlibabaAlscUnionKbOrderRefundRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.OrderRefundDto != nil { + paramMap["order_refund_dto"] = zhios_third_party_utils.ConvertStruct(*req.OrderRefundDto) + } + return paramMap +} + +func (req *AlibabaAlscUnionKbOrderRefundRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbStoreItemQueryRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbStoreItemQueryRequest.go new file mode 100644 index 0000000..832ba56 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbStoreItemQueryRequest.go @@ -0,0 +1,55 @@ +package request + +type AlibabaAlscUnionKbStoreItemQueryRequest struct { + /* + 门店ID */ + StoreId *string `json:"store_id" required:"true" ` + /* + 场景类型("kb_natural";) */ + BizType *string `json:"biz_type" required:"true" ` + /* + 推广位 */ + Pid *string `json:"pid" required:"true" ` + /* + sid */ + Sid *string `json:"sid,omitempty" required:"false" ` +} + +func (s *AlibabaAlscUnionKbStoreItemQueryRequest) SetStoreId(v string) *AlibabaAlscUnionKbStoreItemQueryRequest { + s.StoreId = &v + return s +} +func (s *AlibabaAlscUnionKbStoreItemQueryRequest) SetBizType(v string) *AlibabaAlscUnionKbStoreItemQueryRequest { + s.BizType = &v + return s +} +func (s *AlibabaAlscUnionKbStoreItemQueryRequest) SetPid(v string) *AlibabaAlscUnionKbStoreItemQueryRequest { + s.Pid = &v + return s +} +func (s *AlibabaAlscUnionKbStoreItemQueryRequest) SetSid(v string) *AlibabaAlscUnionKbStoreItemQueryRequest { + s.Sid = &v + return s +} + +func (req *AlibabaAlscUnionKbStoreItemQueryRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.StoreId != nil { + paramMap["store_id"] = *req.StoreId + } + if req.BizType != nil { + paramMap["biz_type"] = *req.BizType + } + if req.Pid != nil { + paramMap["pid"] = *req.Pid + } + if req.Sid != nil { + paramMap["sid"] = *req.Sid + } + return paramMap +} + +func (req *AlibabaAlscUnionKbStoreItemQueryRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbStoreQueryRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbStoreQueryRequest.go new file mode 100644 index 0000000..4519914 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbStoreQueryRequest.go @@ -0,0 +1,135 @@ +package request + +type AlibabaAlscUnionKbStoreQueryRequest struct { + /* + 页码(默认1) defalutValue��1 */ + PageNumber *int64 `json:"page_number" required:"true" ` + /* + 每页数目(默认10) defalutValue��10 */ + PageSize *int64 `json:"page_size" required:"true" ` + /* + 会话ID(分页场景首次请求结果返回,后续请求必须携带,服务根据session_id相同请求次数自动翻页返回) */ + SessionId *string `json:"session_id,omitempty" required:"false" ` + /* + 场景类型("kb_natural";) */ + BizType *string `json:"biz_type" required:"true" ` + /* + 排序类型,默认normal("normal"-门店创建时间倒序;"distance_asc"-距离最近) */ + SortType *string `json:"sort_type,omitempty" required:"false" ` + /* + 城市ID */ + CityId *string `json:"city_id,omitempty" required:"false" ` + /* + 口碑二级类目(逗号分隔) */ + KbCategory2Ids *string `json:"kb_category_2_ids,omitempty" required:"false" ` + /* + 口碑三级类目(逗号分隔) */ + KbCategory3Ids *string `json:"kb_category_3_ids,omitempty" required:"false" ` + /* + 经度(经纬度、范围配合使用) */ + Longitude *string `json:"longitude,omitempty" required:"false" ` + /* + 纬度(经纬度、范围配合使用) */ + Latitude *string `json:"latitude,omitempty" required:"false" ` + /* + 范围(单位:米,经纬度、范围配合使用) */ + Range *int64 `json:"range,omitempty" required:"false" ` + /* + 口碑一级类目(逗号分隔) */ + KbCategory1Ids *string `json:"kb_category_1_ids,omitempty" required:"false" ` +} + +func (s *AlibabaAlscUnionKbStoreQueryRequest) SetPageNumber(v int64) *AlibabaAlscUnionKbStoreQueryRequest { + s.PageNumber = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryRequest) SetPageSize(v int64) *AlibabaAlscUnionKbStoreQueryRequest { + s.PageSize = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryRequest) SetSessionId(v string) *AlibabaAlscUnionKbStoreQueryRequest { + s.SessionId = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryRequest) SetBizType(v string) *AlibabaAlscUnionKbStoreQueryRequest { + s.BizType = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryRequest) SetSortType(v string) *AlibabaAlscUnionKbStoreQueryRequest { + s.SortType = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryRequest) SetCityId(v string) *AlibabaAlscUnionKbStoreQueryRequest { + s.CityId = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryRequest) SetKbCategory2Ids(v string) *AlibabaAlscUnionKbStoreQueryRequest { + s.KbCategory2Ids = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryRequest) SetKbCategory3Ids(v string) *AlibabaAlscUnionKbStoreQueryRequest { + s.KbCategory3Ids = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryRequest) SetLongitude(v string) *AlibabaAlscUnionKbStoreQueryRequest { + s.Longitude = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryRequest) SetLatitude(v string) *AlibabaAlscUnionKbStoreQueryRequest { + s.Latitude = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryRequest) SetRange(v int64) *AlibabaAlscUnionKbStoreQueryRequest { + s.Range = &v + return s +} +func (s *AlibabaAlscUnionKbStoreQueryRequest) SetKbCategory1Ids(v string) *AlibabaAlscUnionKbStoreQueryRequest { + s.KbCategory1Ids = &v + return s +} + +func (req *AlibabaAlscUnionKbStoreQueryRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.PageNumber != nil { + paramMap["page_number"] = *req.PageNumber + } + if req.PageSize != nil { + paramMap["page_size"] = *req.PageSize + } + if req.SessionId != nil { + paramMap["session_id"] = *req.SessionId + } + if req.BizType != nil { + paramMap["biz_type"] = *req.BizType + } + if req.SortType != nil { + paramMap["sort_type"] = *req.SortType + } + if req.CityId != nil { + paramMap["city_id"] = *req.CityId + } + if req.KbCategory2Ids != nil { + paramMap["kb_category_2_ids"] = *req.KbCategory2Ids + } + if req.KbCategory3Ids != nil { + paramMap["kb_category_3_ids"] = *req.KbCategory3Ids + } + if req.Longitude != nil { + paramMap["longitude"] = *req.Longitude + } + if req.Latitude != nil { + paramMap["latitude"] = *req.Latitude + } + if req.Range != nil { + paramMap["range"] = *req.Range + } + if req.KbCategory1Ids != nil { + paramMap["kb_category_1_ids"] = *req.KbCategory1Ids + } + return paramMap +} + +func (req *AlibabaAlscUnionKbStoreQueryRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpaOrderDetailsGetRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpaOrderDetailsGetRequest.go new file mode 100644 index 0000000..1c14045 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpaOrderDetailsGetRequest.go @@ -0,0 +1,95 @@ +package request + +type AlibabaAlscUnionKbcpaOrderDetailsGetRequest struct { + /* + 时间维度,1-付款时间 2-创建时间 3-结算时间 4-更新时间 defalutValue��1 */ + DateType *int64 `json:"date_type" required:"true" ` + /* + 结算状态,1-已结算 2-未结算 不传-所有状态 */ + SettleState *int64 `json:"settle_state,omitempty" required:"false" ` + /* + 查询结束时间 */ + EndDate *string `json:"end_date,omitempty" required:"false" ` + /* + 每页返回数据大小,默认10,最大返回50 defalutValue��10 */ + PageSize *int64 `json:"page_size" required:"true" ` + /* + 页码,默认第一页,取值范围1~50 defalutValue��1 */ + PageNumber *int64 `json:"page_number" required:"true" ` + /* + 查询开始时间 */ + StartDate *string `json:"start_date" required:"true" ` + /* + 订单状态,0-已失效 1-已下单 2-已付款 4-已收货 不传-全部状态 */ + OrderState *int64 `json:"order_state,omitempty" required:"false" ` + /* + 推广位pid */ + Pid *string `json:"pid,omitempty" required:"false" ` +} + +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetRequest) SetDateType(v int64) *AlibabaAlscUnionKbcpaOrderDetailsGetRequest { + s.DateType = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetRequest) SetSettleState(v int64) *AlibabaAlscUnionKbcpaOrderDetailsGetRequest { + s.SettleState = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetRequest) SetEndDate(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetRequest { + s.EndDate = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetRequest) SetPageSize(v int64) *AlibabaAlscUnionKbcpaOrderDetailsGetRequest { + s.PageSize = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetRequest) SetPageNumber(v int64) *AlibabaAlscUnionKbcpaOrderDetailsGetRequest { + s.PageNumber = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetRequest) SetStartDate(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetRequest { + s.StartDate = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetRequest) SetOrderState(v int64) *AlibabaAlscUnionKbcpaOrderDetailsGetRequest { + s.OrderState = &v + return s +} +func (s *AlibabaAlscUnionKbcpaOrderDetailsGetRequest) SetPid(v string) *AlibabaAlscUnionKbcpaOrderDetailsGetRequest { + s.Pid = &v + return s +} + +func (req *AlibabaAlscUnionKbcpaOrderDetailsGetRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.DateType != nil { + paramMap["date_type"] = *req.DateType + } + if req.SettleState != nil { + paramMap["settle_state"] = *req.SettleState + } + if req.EndDate != nil { + paramMap["end_date"] = *req.EndDate + } + if req.PageSize != nil { + paramMap["page_size"] = *req.PageSize + } + if req.PageNumber != nil { + paramMap["page_number"] = *req.PageNumber + } + if req.StartDate != nil { + paramMap["start_date"] = *req.StartDate + } + if req.OrderState != nil { + paramMap["order_state"] = *req.OrderState + } + if req.Pid != nil { + paramMap["pid"] = *req.Pid + } + return paramMap +} + +func (req *AlibabaAlscUnionKbcpaOrderDetailsGetRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpaPunishOrderGetRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpaPunishOrderGetRequest.go new file mode 100644 index 0000000..e364ae1 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpaPunishOrderGetRequest.go @@ -0,0 +1,65 @@ +package request + +type AlibabaAlscUnionKbcpaPunishOrderGetRequest struct { + /* + 时间维度,1.订单结算时间 2.维权创建时间 3.维权完成时间 */ + DateType *int64 `json:"date_type,omitempty" required:"false" ` + /* + 截止查询时间 */ + EndDate *string `json:"end_date,omitempty" required:"false" ` + /* + 每页返回数据大小,默认20,最大返回50 */ + PageSize *int64 `json:"page_size,omitempty" required:"false" ` + /* + 页码,默认第一页,取值范围1~50 */ + PageNumber *int64 `json:"page_number,omitempty" required:"false" ` + /* + 开始查询时间 */ + StartDate *string `json:"start_date,omitempty" required:"false" ` +} + +func (s *AlibabaAlscUnionKbcpaPunishOrderGetRequest) SetDateType(v int64) *AlibabaAlscUnionKbcpaPunishOrderGetRequest { + s.DateType = &v + return s +} +func (s *AlibabaAlscUnionKbcpaPunishOrderGetRequest) SetEndDate(v string) *AlibabaAlscUnionKbcpaPunishOrderGetRequest { + s.EndDate = &v + return s +} +func (s *AlibabaAlscUnionKbcpaPunishOrderGetRequest) SetPageSize(v int64) *AlibabaAlscUnionKbcpaPunishOrderGetRequest { + s.PageSize = &v + return s +} +func (s *AlibabaAlscUnionKbcpaPunishOrderGetRequest) SetPageNumber(v int64) *AlibabaAlscUnionKbcpaPunishOrderGetRequest { + s.PageNumber = &v + return s +} +func (s *AlibabaAlscUnionKbcpaPunishOrderGetRequest) SetStartDate(v string) *AlibabaAlscUnionKbcpaPunishOrderGetRequest { + s.StartDate = &v + return s +} + +func (req *AlibabaAlscUnionKbcpaPunishOrderGetRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.DateType != nil { + paramMap["date_type"] = *req.DateType + } + if req.EndDate != nil { + paramMap["end_date"] = *req.EndDate + } + if req.PageSize != nil { + paramMap["page_size"] = *req.PageSize + } + if req.PageNumber != nil { + paramMap["page_number"] = *req.PageNumber + } + if req.StartDate != nil { + paramMap["start_date"] = *req.StartDate + } + return paramMap +} + +func (req *AlibabaAlscUnionKbcpaPunishOrderGetRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpaRefundOrderGetRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpaRefundOrderGetRequest.go new file mode 100644 index 0000000..ad4636b --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpaRefundOrderGetRequest.go @@ -0,0 +1,75 @@ +package request + +type AlibabaAlscUnionKbcpaRefundOrderGetRequest struct { + /* + 时间维度,1.订单结算时间 2.维权创建时间 3.维权完成时间 4更新时间 */ + DateType *int64 `json:"date_type" required:"true" ` + /* + 查询结束时间 */ + EndDate *string `json:"end_date,omitempty" required:"false" ` + /* + 每页返回数据大小,默认20,最大返回50 */ + PageSize *int64 `json:"page_size" required:"true" ` + /* + 页码,默认第一页,取值范围1~50 */ + PageNumber *int64 `json:"page_number" required:"true" ` + /* + 查询开始时间 */ + StartDate *string `json:"start_date" required:"true" ` + /* + 推广位pid */ + Pid *string `json:"pid,omitempty" required:"false" ` +} + +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRequest) SetDateType(v int64) *AlibabaAlscUnionKbcpaRefundOrderGetRequest { + s.DateType = &v + return s +} +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRequest) SetEndDate(v string) *AlibabaAlscUnionKbcpaRefundOrderGetRequest { + s.EndDate = &v + return s +} +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRequest) SetPageSize(v int64) *AlibabaAlscUnionKbcpaRefundOrderGetRequest { + s.PageSize = &v + return s +} +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRequest) SetPageNumber(v int64) *AlibabaAlscUnionKbcpaRefundOrderGetRequest { + s.PageNumber = &v + return s +} +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRequest) SetStartDate(v string) *AlibabaAlscUnionKbcpaRefundOrderGetRequest { + s.StartDate = &v + return s +} +func (s *AlibabaAlscUnionKbcpaRefundOrderGetRequest) SetPid(v string) *AlibabaAlscUnionKbcpaRefundOrderGetRequest { + s.Pid = &v + return s +} + +func (req *AlibabaAlscUnionKbcpaRefundOrderGetRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.DateType != nil { + paramMap["date_type"] = *req.DateType + } + if req.EndDate != nil { + paramMap["end_date"] = *req.EndDate + } + if req.PageSize != nil { + paramMap["page_size"] = *req.PageSize + } + if req.PageNumber != nil { + paramMap["page_number"] = *req.PageNumber + } + if req.StartDate != nil { + paramMap["start_date"] = *req.StartDate + } + if req.Pid != nil { + paramMap["pid"] = *req.Pid + } + return paramMap +} + +func (req *AlibabaAlscUnionKbcpaRefundOrderGetRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpxPositiveOrderGetRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpxPositiveOrderGetRequest.go new file mode 100644 index 0000000..f56d45c --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpxPositiveOrderGetRequest.go @@ -0,0 +1,135 @@ +package request + +type AlibabaAlscUnionKbcpxPositiveOrderGetRequest struct { + /* + 时间维度,1-付款时间 2-创建时间 3-结算时间 4-更新时间 defalutValue��1 */ + DateType *int64 `json:"date_type" required:"true" ` + /* + 结算状态,1-已结算 2-未结算 不传-全部状态 */ + SettleState *int64 `json:"settle_state,omitempty" required:"false" ` + /* + 查询截止时间,精确到时分秒。开始和结束时间不能超过31天 */ + EndDate *string `json:"end_date,omitempty" required:"false" ` + /* + 1-CPA 2-CPS defalutValue��1 */ + BizUnit *int64 `json:"biz_unit" required:"true" ` + /* + 每页返回数据大小,默认10,最大返回50 defalutValue��10 */ + PageSize *int64 `json:"page_size" required:"true" ` + /* + 页码,默认第一页,取值范围1~50 defalutValue��1 */ + PageNumber *int64 `json:"page_number" required:"true" ` + /* + 查询起始时间,精确到时分秒。开始和结束时间不能超过31天 */ + StartDate *string `json:"start_date" required:"true" ` + /* + 订单状态,0-已失效 1-已下单 2-已付款 4-已收货 不传-全部状态 */ + OrderState *int64 `json:"order_state,omitempty" required:"false" ` + /* + 场景值,支持多场景(英文逗号分隔)查询7卡券订单,8卡券核销订单,10-媒体出资CPS红包,11-媒体出资霸王餐加码红包 */ + FlowType *string `json:"flow_type,omitempty" required:"false" ` + /* + 推广位pid */ + Pid *string `json:"pid,omitempty" required:"false" ` + /* + 淘宝子订单号或饿了么订单号 */ + OrderId *string `json:"order_id,omitempty" required:"false" ` + /* + 是否包含核销门店 */ + IncludeUsedStoreId *bool `json:"include_used_store_id,omitempty" required:"false" ` +} + +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetRequest) SetDateType(v int64) *AlibabaAlscUnionKbcpxPositiveOrderGetRequest { + s.DateType = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetRequest) SetSettleState(v int64) *AlibabaAlscUnionKbcpxPositiveOrderGetRequest { + s.SettleState = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetRequest) SetEndDate(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetRequest { + s.EndDate = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetRequest) SetBizUnit(v int64) *AlibabaAlscUnionKbcpxPositiveOrderGetRequest { + s.BizUnit = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetRequest) SetPageSize(v int64) *AlibabaAlscUnionKbcpxPositiveOrderGetRequest { + s.PageSize = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetRequest) SetPageNumber(v int64) *AlibabaAlscUnionKbcpxPositiveOrderGetRequest { + s.PageNumber = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetRequest) SetStartDate(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetRequest { + s.StartDate = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetRequest) SetOrderState(v int64) *AlibabaAlscUnionKbcpxPositiveOrderGetRequest { + s.OrderState = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetRequest) SetFlowType(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetRequest { + s.FlowType = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetRequest) SetPid(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetRequest { + s.Pid = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetRequest) SetOrderId(v string) *AlibabaAlscUnionKbcpxPositiveOrderGetRequest { + s.OrderId = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPositiveOrderGetRequest) SetIncludeUsedStoreId(v bool) *AlibabaAlscUnionKbcpxPositiveOrderGetRequest { + s.IncludeUsedStoreId = &v + return s +} + +func (req *AlibabaAlscUnionKbcpxPositiveOrderGetRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.DateType != nil { + paramMap["date_type"] = *req.DateType + } + if req.SettleState != nil { + paramMap["settle_state"] = *req.SettleState + } + if req.EndDate != nil { + paramMap["end_date"] = *req.EndDate + } + if req.BizUnit != nil { + paramMap["biz_unit"] = *req.BizUnit + } + if req.PageSize != nil { + paramMap["page_size"] = *req.PageSize + } + if req.PageNumber != nil { + paramMap["page_number"] = *req.PageNumber + } + if req.StartDate != nil { + paramMap["start_date"] = *req.StartDate + } + if req.OrderState != nil { + paramMap["order_state"] = *req.OrderState + } + if req.FlowType != nil { + paramMap["flow_type"] = *req.FlowType + } + if req.Pid != nil { + paramMap["pid"] = *req.Pid + } + if req.OrderId != nil { + paramMap["order_id"] = *req.OrderId + } + if req.IncludeUsedStoreId != nil { + paramMap["include_used_store_id"] = *req.IncludeUsedStoreId + } + return paramMap +} + +func (req *AlibabaAlscUnionKbcpxPositiveOrderGetRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpxPunishOrderGetRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpxPunishOrderGetRequest.go new file mode 100644 index 0000000..480685b --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpxPunishOrderGetRequest.go @@ -0,0 +1,105 @@ +package request + +type AlibabaAlscUnionKbcpxPunishOrderGetRequest struct { + /* + 时间维度,1.订单结算时间 2.维权创建时间 3.维权完成时间 4更新时间 defalutValue��1 */ + DateType *int64 `json:"date_type" required:"true" ` + /* + 查询截止时间。开始和结束时间不能超过31天 */ + EndDate *string `json:"end_date,omitempty" required:"false" ` + /* + 1-CPA 2-CPS defalutValue��1 */ + BizUnit *int64 `json:"biz_unit" required:"true" ` + /* + 每页返回数据大小,默认10,最大返回50 defalutValue��10 */ + PageSize *int64 `json:"page_size" required:"true" ` + /* + 页码,默认第一页,取值范围1~50 defalutValue��1 */ + PageNumber *int64 `json:"page_number" required:"true" ` + /* + 查询起始时间。开始和结束时间不能超过31天 */ + StartDate *string `json:"start_date" required:"true" ` + /* + 场景值,支持多场景(英文逗号分隔)查询7卡券订单,8卡券核销订单,10-媒体出资CPS红包,11-媒体出资霸王餐加码红包 */ + FlowType *string `json:"flow_type,omitempty" required:"false" ` + /* + 推广位pid */ + Pid *string `json:"pid,omitempty" required:"false" ` + /* + 淘宝子订单号 */ + OrderId *string `json:"order_id,omitempty" required:"false" ` +} + +func (s *AlibabaAlscUnionKbcpxPunishOrderGetRequest) SetDateType(v int64) *AlibabaAlscUnionKbcpxPunishOrderGetRequest { + s.DateType = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetRequest) SetEndDate(v string) *AlibabaAlscUnionKbcpxPunishOrderGetRequest { + s.EndDate = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetRequest) SetBizUnit(v int64) *AlibabaAlscUnionKbcpxPunishOrderGetRequest { + s.BizUnit = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetRequest) SetPageSize(v int64) *AlibabaAlscUnionKbcpxPunishOrderGetRequest { + s.PageSize = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetRequest) SetPageNumber(v int64) *AlibabaAlscUnionKbcpxPunishOrderGetRequest { + s.PageNumber = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetRequest) SetStartDate(v string) *AlibabaAlscUnionKbcpxPunishOrderGetRequest { + s.StartDate = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetRequest) SetFlowType(v string) *AlibabaAlscUnionKbcpxPunishOrderGetRequest { + s.FlowType = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetRequest) SetPid(v string) *AlibabaAlscUnionKbcpxPunishOrderGetRequest { + s.Pid = &v + return s +} +func (s *AlibabaAlscUnionKbcpxPunishOrderGetRequest) SetOrderId(v string) *AlibabaAlscUnionKbcpxPunishOrderGetRequest { + s.OrderId = &v + return s +} + +func (req *AlibabaAlscUnionKbcpxPunishOrderGetRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.DateType != nil { + paramMap["date_type"] = *req.DateType + } + if req.EndDate != nil { + paramMap["end_date"] = *req.EndDate + } + if req.BizUnit != nil { + paramMap["biz_unit"] = *req.BizUnit + } + if req.PageSize != nil { + paramMap["page_size"] = *req.PageSize + } + if req.PageNumber != nil { + paramMap["page_number"] = *req.PageNumber + } + if req.StartDate != nil { + paramMap["start_date"] = *req.StartDate + } + if req.FlowType != nil { + paramMap["flow_type"] = *req.FlowType + } + if req.Pid != nil { + paramMap["pid"] = *req.Pid + } + if req.OrderId != nil { + paramMap["order_id"] = *req.OrderId + } + return paramMap +} + +func (req *AlibabaAlscUnionKbcpxPunishOrderGetRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpxRefundOrderGetRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpxRefundOrderGetRequest.go new file mode 100644 index 0000000..f35f270 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionKbcpxRefundOrderGetRequest.go @@ -0,0 +1,105 @@ +package request + +type AlibabaAlscUnionKbcpxRefundOrderGetRequest struct { + /* + 时间维度,1.订单结算时间 2.维权创建时间 3.维权完成时间 4更新时间 defalutValue��1 */ + DateType *int64 `json:"date_type" required:"true" ` + /* + 查询截止时间。开始和结束时间不能超过31天 */ + EndDate *string `json:"end_date,omitempty" required:"false" ` + /* + 1-CPA 2-CPS defalutValue��1 */ + BizUnit *int64 `json:"biz_unit" required:"true" ` + /* + 每页返回数据大小,默认10,最大返回50 defalutValue��10 */ + PageSize *int64 `json:"page_size" required:"true" ` + /* + 页码,默认第一页,取值范围1~50 defalutValue��1 */ + PageNumber *int64 `json:"page_number" required:"true" ` + /* + 查询起始时间。开始和结束时间不能超过31天 */ + StartDate *string `json:"start_date" required:"true" ` + /* + 场景值,支持多场景(英文逗号分隔)查询7卡券订单,8卡券核销订单,10-媒体出资CPS红包,11-媒体出资霸王餐加码红包 */ + FlowType *string `json:"flow_type,omitempty" required:"false" ` + /* + 推广位pid */ + Pid *string `json:"pid,omitempty" required:"false" ` + /* + 淘宝子订单号或饿了么订单号 */ + OrderId *string `json:"order_id,omitempty" required:"false" ` +} + +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRequest) SetDateType(v int64) *AlibabaAlscUnionKbcpxRefundOrderGetRequest { + s.DateType = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRequest) SetEndDate(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRequest { + s.EndDate = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRequest) SetBizUnit(v int64) *AlibabaAlscUnionKbcpxRefundOrderGetRequest { + s.BizUnit = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRequest) SetPageSize(v int64) *AlibabaAlscUnionKbcpxRefundOrderGetRequest { + s.PageSize = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRequest) SetPageNumber(v int64) *AlibabaAlscUnionKbcpxRefundOrderGetRequest { + s.PageNumber = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRequest) SetStartDate(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRequest { + s.StartDate = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRequest) SetFlowType(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRequest { + s.FlowType = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRequest) SetPid(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRequest { + s.Pid = &v + return s +} +func (s *AlibabaAlscUnionKbcpxRefundOrderGetRequest) SetOrderId(v string) *AlibabaAlscUnionKbcpxRefundOrderGetRequest { + s.OrderId = &v + return s +} + +func (req *AlibabaAlscUnionKbcpxRefundOrderGetRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.DateType != nil { + paramMap["date_type"] = *req.DateType + } + if req.EndDate != nil { + paramMap["end_date"] = *req.EndDate + } + if req.BizUnit != nil { + paramMap["biz_unit"] = *req.BizUnit + } + if req.PageSize != nil { + paramMap["page_size"] = *req.PageSize + } + if req.PageNumber != nil { + paramMap["page_number"] = *req.PageNumber + } + if req.StartDate != nil { + paramMap["start_date"] = *req.StartDate + } + if req.FlowType != nil { + paramMap["flow_type"] = *req.FlowType + } + if req.Pid != nil { + paramMap["pid"] = *req.Pid + } + if req.OrderId != nil { + paramMap["order_id"] = *req.OrderId + } + return paramMap +} + +func (req *AlibabaAlscUnionKbcpxRefundOrderGetRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionMediaZoneAddRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionMediaZoneAddRequest.go new file mode 100644 index 0000000..ad02e13 --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionMediaZoneAddRequest.go @@ -0,0 +1,35 @@ +package request + +type AlibabaAlscUnionMediaZoneAddRequest struct { + /* + 推广位名称 */ + ZoneName *string `json:"zone_name" required:"true" ` + /* + 媒体id,工具商渠道必填 */ + MediaId *string `json:"media_id,omitempty" required:"false" ` +} + +func (s *AlibabaAlscUnionMediaZoneAddRequest) SetZoneName(v string) *AlibabaAlscUnionMediaZoneAddRequest { + s.ZoneName = &v + return s +} +func (s *AlibabaAlscUnionMediaZoneAddRequest) SetMediaId(v string) *AlibabaAlscUnionMediaZoneAddRequest { + s.MediaId = &v + return s +} + +func (req *AlibabaAlscUnionMediaZoneAddRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.ZoneName != nil { + paramMap["zone_name"] = *req.ZoneName + } + if req.MediaId != nil { + paramMap["media_id"] = *req.MediaId + } + return paramMap +} + +func (req *AlibabaAlscUnionMediaZoneAddRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/AlibabaAlscUnionMediaZoneGetRequest.go b/taobao/topsdk/defaultability/request/AlibabaAlscUnionMediaZoneGetRequest.go new file mode 100644 index 0000000..1b1162f --- /dev/null +++ b/taobao/topsdk/defaultability/request/AlibabaAlscUnionMediaZoneGetRequest.go @@ -0,0 +1,35 @@ +package request + +type AlibabaAlscUnionMediaZoneGetRequest struct { + /* + 页码,从1开始 defalutValue��1 */ + Page *int64 `json:"page" required:"true" ` + /* + 每页展示条数 defalutValue��10 */ + Limit *int64 `json:"limit" required:"true" ` +} + +func (s *AlibabaAlscUnionMediaZoneGetRequest) SetPage(v int64) *AlibabaAlscUnionMediaZoneGetRequest { + s.Page = &v + return s +} +func (s *AlibabaAlscUnionMediaZoneGetRequest) SetLimit(v int64) *AlibabaAlscUnionMediaZoneGetRequest { + s.Limit = &v + return s +} + +func (req *AlibabaAlscUnionMediaZoneGetRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.Page != nil { + paramMap["page"] = *req.Page + } + if req.Limit != nil { + paramMap["limit"] = *req.Limit + } + return paramMap +} + +func (req *AlibabaAlscUnionMediaZoneGetRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/TaobaoTmcMessageProduceRequest.go b/taobao/topsdk/defaultability/request/TaobaoTmcMessageProduceRequest.go new file mode 100644 index 0000000..3de681c --- /dev/null +++ b/taobao/topsdk/defaultability/request/TaobaoTmcMessageProduceRequest.go @@ -0,0 +1,135 @@ +package request + +type TaobaoTmcMessageProduceRequest struct { + /* + 消息内容的JSON表述,必须按照topic的定义来填充 */ + Content *string `json:"content" required:"true" ` + /* + 消息的扩增属性,用json格式表示 */ + ExContent *string `json:"ex_content,omitempty" required:"false" ` + /* + 直发消息需要传入目标appkey */ + TargetAppkey *string `json:"target_appkey,omitempty" required:"false" ` + /* + 目标分组,一般为default defalutValue��default */ + TargetGroup *string `json:"target_group,omitempty" required:"false" ` + /* + 消息类型 */ + Topic *string `json:"topic" required:"true" ` + /* + 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。 */ + MediaContent *[]byte `json:"media_content,omitempty" required:"false" ` + /* + 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。具体对应到沙体中的什么值,请参考消息字段说明。 */ + MediaContent2 *[]byte `json:"media_content2,omitempty" required:"false" ` + /* + 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。具体对应到沙体中的什么值,请参考消息字段说明。 */ + MediaContent3 *[]byte `json:"media_content3,omitempty" required:"false" ` + /* + 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。具体对应到沙体中的什么值,请参考消息字段说明。 */ + MediaContent5 *[]byte `json:"media_content5,omitempty" required:"false" ` + /* + 回传的文件内容,目前仅支持jpg,png,bmp,gif,pdf类型的文件,文件最大1M。只有消息中有byte[]类型的数据时,才需要传此字段; 否则不需要传此字段。具体对应到沙体中的什么值,请参考消息字段说明。 */ + MediaContent4 *[]byte `json:"media_content4,omitempty" required:"false" ` + /* + 延时参数 时间戳 预期发送时间 defalutValue��0 */ + DelayMillis *int64 `json:"delay_millis,omitempty" required:"false" ` + /* + 提前过期 相对时间差 毫秒 defalutValue��0 */ + ExpiresMillis *int64 `json:"expires_millis,omitempty" required:"false" ` +} + +func (s *TaobaoTmcMessageProduceRequest) SetContent(v string) *TaobaoTmcMessageProduceRequest { + s.Content = &v + return s +} +func (s *TaobaoTmcMessageProduceRequest) SetExContent(v string) *TaobaoTmcMessageProduceRequest { + s.ExContent = &v + return s +} +func (s *TaobaoTmcMessageProduceRequest) SetTargetAppkey(v string) *TaobaoTmcMessageProduceRequest { + s.TargetAppkey = &v + return s +} +func (s *TaobaoTmcMessageProduceRequest) SetTargetGroup(v string) *TaobaoTmcMessageProduceRequest { + s.TargetGroup = &v + return s +} +func (s *TaobaoTmcMessageProduceRequest) SetTopic(v string) *TaobaoTmcMessageProduceRequest { + s.Topic = &v + return s +} +func (s *TaobaoTmcMessageProduceRequest) SetMediaContent(v []byte) *TaobaoTmcMessageProduceRequest { + s.MediaContent = &v + return s +} +func (s *TaobaoTmcMessageProduceRequest) SetMediaContent2(v []byte) *TaobaoTmcMessageProduceRequest { + s.MediaContent2 = &v + return s +} +func (s *TaobaoTmcMessageProduceRequest) SetMediaContent3(v []byte) *TaobaoTmcMessageProduceRequest { + s.MediaContent3 = &v + return s +} +func (s *TaobaoTmcMessageProduceRequest) SetMediaContent5(v []byte) *TaobaoTmcMessageProduceRequest { + s.MediaContent5 = &v + return s +} +func (s *TaobaoTmcMessageProduceRequest) SetMediaContent4(v []byte) *TaobaoTmcMessageProduceRequest { + s.MediaContent4 = &v + return s +} +func (s *TaobaoTmcMessageProduceRequest) SetDelayMillis(v int64) *TaobaoTmcMessageProduceRequest { + s.DelayMillis = &v + return s +} +func (s *TaobaoTmcMessageProduceRequest) SetExpiresMillis(v int64) *TaobaoTmcMessageProduceRequest { + s.ExpiresMillis = &v + return s +} + +func (req *TaobaoTmcMessageProduceRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.Content != nil { + paramMap["content"] = *req.Content + } + if req.ExContent != nil { + paramMap["ex_content"] = *req.ExContent + } + if req.TargetAppkey != nil { + paramMap["target_appkey"] = *req.TargetAppkey + } + if req.TargetGroup != nil { + paramMap["target_group"] = *req.TargetGroup + } + if req.Topic != nil { + paramMap["topic"] = *req.Topic + } + if req.DelayMillis != nil { + paramMap["delay_millis"] = *req.DelayMillis + } + if req.ExpiresMillis != nil { + paramMap["expires_millis"] = *req.ExpiresMillis + } + return paramMap +} + +func (req *TaobaoTmcMessageProduceRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + if req.MediaContent != nil { + fileMap["media_content"] = *req.MediaContent + } + if req.MediaContent2 != nil { + fileMap["media_content2"] = *req.MediaContent2 + } + if req.MediaContent3 != nil { + fileMap["media_content3"] = *req.MediaContent3 + } + if req.MediaContent5 != nil { + fileMap["media_content5"] = *req.MediaContent5 + } + if req.MediaContent4 != nil { + fileMap["media_content4"] = *req.MediaContent4 + } + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/TaobaoTmcUserCancelRequest.go b/taobao/topsdk/defaultability/request/TaobaoTmcUserCancelRequest.go new file mode 100644 index 0000000..9947ed6 --- /dev/null +++ b/taobao/topsdk/defaultability/request/TaobaoTmcUserCancelRequest.go @@ -0,0 +1,35 @@ +package request + +type TaobaoTmcUserCancelRequest struct { + /* + 用户昵称 */ + Nick *string `json:"nick" required:"true" ` + /* + 用户所属的平台类型,tbUIC:淘宝用户; icbu: icbu用户;ae:ae用户 defalutValue��tbUIC */ + UserPlatform *string `json:"user_platform,omitempty" required:"false" ` +} + +func (s *TaobaoTmcUserCancelRequest) SetNick(v string) *TaobaoTmcUserCancelRequest { + s.Nick = &v + return s +} +func (s *TaobaoTmcUserCancelRequest) SetUserPlatform(v string) *TaobaoTmcUserCancelRequest { + s.UserPlatform = &v + return s +} + +func (req *TaobaoTmcUserCancelRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.Nick != nil { + paramMap["nick"] = *req.Nick + } + if req.UserPlatform != nil { + paramMap["user_platform"] = *req.UserPlatform + } + return paramMap +} + +func (req *TaobaoTmcUserCancelRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/TaobaoTmcUserGetRequest.go b/taobao/topsdk/defaultability/request/TaobaoTmcUserGetRequest.go new file mode 100644 index 0000000..c78adb3 --- /dev/null +++ b/taobao/topsdk/defaultability/request/TaobaoTmcUserGetRequest.go @@ -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 TaobaoTmcUserGetRequest struct { + /* + 需返回的字段列表,多个字段以半角逗号分隔。可选值:TmcUser结构体中的所有字段,一定要返回topic。 */ + Fields *[]string `json:"fields" required:"true" ` + /* + 用户昵称 */ + Nick *string `json:"nick" required:"true" ` + /* + 用户所属的平台类型,tbUIC:淘宝用户; icbu: icbu用户;ae:ae用户 defalutValue��tbUIC */ + UserPlatform *string `json:"user_platform,omitempty" required:"false" ` +} + +func (s *TaobaoTmcUserGetRequest) SetFields(v []string) *TaobaoTmcUserGetRequest { + s.Fields = &v + return s +} +func (s *TaobaoTmcUserGetRequest) SetNick(v string) *TaobaoTmcUserGetRequest { + s.Nick = &v + return s +} +func (s *TaobaoTmcUserGetRequest) SetUserPlatform(v string) *TaobaoTmcUserGetRequest { + s.UserPlatform = &v + return s +} + +func (req *TaobaoTmcUserGetRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.Fields != nil { + paramMap["fields"] = zhios_third_party_utils.ConvertBasicList(*req.Fields) + } + if req.Nick != nil { + paramMap["nick"] = *req.Nick + } + if req.UserPlatform != nil { + paramMap["user_platform"] = *req.UserPlatform + } + return paramMap +} + +func (req *TaobaoTmcUserGetRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/request/TaobaoTmcUserPermitRequest.go b/taobao/topsdk/defaultability/request/TaobaoTmcUserPermitRequest.go new file mode 100644 index 0000000..ec65098 --- /dev/null +++ b/taobao/topsdk/defaultability/request/TaobaoTmcUserPermitRequest.go @@ -0,0 +1,29 @@ +package request + +import ( + zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" +) + +type TaobaoTmcUserPermitRequest struct { + /* + 消息主题列表,用半角逗号分隔。当用户订阅的topic是应用订阅的子集时才需要设置,不设置表示继承应用所订阅的所有topic,一般情况建议不要设置。 */ + Topics *[]string `json:"topics,omitempty" required:"false" ` +} + +func (s *TaobaoTmcUserPermitRequest) SetTopics(v []string) *TaobaoTmcUserPermitRequest { + s.Topics = &v + return s +} + +func (req *TaobaoTmcUserPermitRequest) ToMap() map[string]interface{} { + paramMap := make(map[string]interface{}) + if req.Topics != nil { + paramMap["topics"] = zhios_third_party_utils.ConvertBasicList(*req.Topics) + } + return paramMap +} + +func (req *TaobaoTmcUserPermitRequest) ToFileMap() map[string]interface{} { + fileMap := make(map[string]interface{}) + return fileMap +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionElemePromotionOfficialactivityGetResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionElemePromotionOfficialactivityGetResponse.go new file mode 100644 index 0000000..548a360 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionElemePromotionOfficialactivityGetResponse.go @@ -0,0 +1,29 @@ +package response + +import "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" + +type AlibabaAlscUnionElemePromotionOfficialactivityGetResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 活动数据 + */ + Data domain.AlibabaAlscUnionElemePromotionOfficialactivityGetActivityPromotionDto `json:"data,omitempty" ` + /* + 返回码 + */ + ResultCode int64 `json:"result_code,omitempty" ` + /* + 返回消息 + */ + Message string `json:"message,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionElemePromotionStorepromotionGetResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionElemePromotionStorepromotionGetResponse.go new file mode 100644 index 0000000..88e6c9a --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionElemePromotionStorepromotionGetResponse.go @@ -0,0 +1,29 @@ +package response + +import "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" + +type AlibabaAlscUnionElemePromotionStorepromotionGetResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 门店推广 + */ + Data domain.AlibabaAlscUnionElemePromotionStorepromotionGetStorePromotionDto `json:"data,omitempty" ` + /* + 返回码 + */ + ResultCode int64 `json:"result_code,omitempty" ` + /* + 返回消息 + */ + Message string `json:"message,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionElemePromotionStorepromotionQueryResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionElemePromotionStorepromotionQueryResponse.go new file mode 100644 index 0000000..f085898 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionElemePromotionStorepromotionQueryResponse.go @@ -0,0 +1,31 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionElemePromotionStorepromotionQueryResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 分页数据 + */ + Data domain.AlibabaAlscUnionElemePromotionStorepromotionQueryPageModel `json:"data,omitempty" ` + /* + 返回码 + */ + ResultCode int64 `json:"result_code,omitempty" ` + /* + 返回消息 + */ + Message string `json:"message,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemDetailGetResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemDetailGetResponse.go new file mode 100644 index 0000000..bc845fe --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemDetailGetResponse.go @@ -0,0 +1,35 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbBbtItemDetailGetResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 品详情 + */ + Data domain.AlibabaAlscUnionKbBbtItemDetailGetBbtItemDetailDto `json:"data,omitempty" ` + /* + 返回码 + */ + ResultCode int64 `json:"result_code,omitempty" ` + /* + 返回消息 + */ + Message string `json:"message,omitempty" ` + /* + 错误消息 + */ + ErrorMessage string `json:"error_message,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemPromotionFilterListResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemPromotionFilterListResponse.go new file mode 100644 index 0000000..c42d762 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemPromotionFilterListResponse.go @@ -0,0 +1,31 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbBbtItemPromotionFilterListResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 筛选项列表 + */ + Result []domain.AlibabaAlscUnionKbBbtItemPromotionFilterListFilterTableNameDTO `json:"result,omitempty" ` + /* + 错误描述码 + */ + BizErrorCode int64 `json:"biz_error_code,omitempty" ` + /* + 错误信息描述 + */ + BizErrorMsg string `json:"biz_error_msg,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemQueryResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemQueryResponse.go new file mode 100644 index 0000000..6269fb5 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemQueryResponse.go @@ -0,0 +1,35 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbBbtItemQueryResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 分页数据 + */ + Data domain.AlibabaAlscUnionKbBbtItemQueryPageModel `json:"data,omitempty" ` + /* + 返回码 + */ + ResultCode int64 `json:"result_code,omitempty" ` + /* + 返回消息 + */ + Message string `json:"message,omitempty" ` + /* + 错误消息 + */ + ErrorMessage string `json:"error_message,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemStoreDetailGetResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemStoreDetailGetResponse.go new file mode 100644 index 0000000..acca468 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemStoreDetailGetResponse.go @@ -0,0 +1,31 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbBbtItemStoreDetailGetResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 门店详情 + */ + Data domain.AlibabaAlscUnionKbBbtItemStoreDetailGetBbtShopDetailDto `json:"data,omitempty" ` + /* + 返回码 + */ + ResultCode int64 `json:"result_code,omitempty" ` + /* + 返回消息 + */ + Message string `json:"message,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemStoreRelationQueryResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemStoreRelationQueryResponse.go new file mode 100644 index 0000000..34e489b --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbBbtItemStoreRelationQueryResponse.go @@ -0,0 +1,31 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbBbtItemStoreRelationQueryResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 分页数据 + */ + Data domain.AlibabaAlscUnionKbBbtItemStoreRelationQueryPageModel `json:"data,omitempty" ` + /* + 返回码 + */ + ResultCode int64 `json:"result_code,omitempty" ` + /* + 返回消息 + */ + Message string `json:"message,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbCommonEncryptResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbCommonEncryptResponse.go new file mode 100644 index 0000000..8a2671b --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbCommonEncryptResponse.go @@ -0,0 +1,29 @@ +package response + +import () + +type AlibabaAlscUnionKbCommonEncryptResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 加密后的字符串,有效期1小时 + */ + Data string `json:"data,omitempty" ` + /* + 1 + */ + ResultCode int64 `json:"result_code,omitempty" ` + /* + success + */ + Message string `json:"message,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemDetailGetResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemDetailGetResponse.go new file mode 100644 index 0000000..b1d77f5 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemDetailGetResponse.go @@ -0,0 +1,31 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbItemDetailGetResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 商品详情 + */ + Data domain.AlibabaAlscUnionKbItemDetailGetKbItemDetailDto `json:"data,omitempty" ` + /* + 返回码 + */ + ResultCode int64 `json:"result_code,omitempty" ` + /* + 返回消息 + */ + Message string `json:"message,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemPromotionFilterListResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemPromotionFilterListResponse.go new file mode 100644 index 0000000..d3c0de3 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemPromotionFilterListResponse.go @@ -0,0 +1,31 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbItemPromotionFilterListResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 筛选项列表 + */ + Result []domain.AlibabaAlscUnionKbItemPromotionFilterListFilterTableNameDTO `json:"result,omitempty" ` + /* + 错误描述码 + */ + BizErrorCode int64 `json:"biz_error_code,omitempty" ` + /* + 错误信息描述 + */ + BizErrorMsg string `json:"biz_error_msg,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemPromotionResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemPromotionResponse.go new file mode 100644 index 0000000..c50905b --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemPromotionResponse.go @@ -0,0 +1,39 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbItemPromotionResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 翻页时带入下一页 + */ + SessionId string `json:"session_id,omitempty" ` + /* + 错误详情描述 + */ + BizErrorDesc string `json:"biz_error_desc,omitempty" ` + /* + 当前条件下可推广品总数 + */ + TotalCount int64 `json:"total_count,omitempty" ` + /* + 推广品List + */ + Items []domain.AlibabaAlscUnionKbItemPromotionKbItemPromotionDTO `json:"items,omitempty" ` + /* + 商品错误描述码 + */ + BizErrorCode string `json:"biz_error_code,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemPromotionShareCreateResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemPromotionShareCreateResponse.go new file mode 100644 index 0000000..4b59f9a --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemPromotionShareCreateResponse.go @@ -0,0 +1,35 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbItemPromotionShareCreateResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 推广链接等信息 + */ + Result domain.AlibabaAlscUnionKbItemPromotionShareCreateExtendDTO `json:"result,omitempty" ` + /* + 接口返回是否正确 + */ + ResultSuccess bool `json:"result_success,omitempty" ` + /* + 接口错误码 + */ + BizErrorCode string `json:"biz_error_code,omitempty" ` + /* + 接口错误描述 + */ + BizErrorDesc string `json:"biz_error_desc,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemQueryResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemQueryResponse.go new file mode 100644 index 0000000..b6e2221 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemQueryResponse.go @@ -0,0 +1,35 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbItemQueryResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 分页数据 + */ + Data domain.AlibabaAlscUnionKbItemQueryPageModel `json:"data,omitempty" ` + /* + 返回码 + */ + ResultCode int64 `json:"result_code,omitempty" ` + /* + 返回消息 + */ + Message string `json:"message,omitempty" ` + /* + 错误描述 + */ + ErrorMessage string `json:"error_message,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemStoreDetailGetResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemStoreDetailGetResponse.go new file mode 100644 index 0000000..85d281b --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemStoreDetailGetResponse.go @@ -0,0 +1,31 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbItemStoreDetailGetResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 门店详情 + */ + Data domain.AlibabaAlscUnionKbItemStoreDetailGetKbShopDetailDto `json:"data,omitempty" ` + /* + 返回码 + */ + ResultCode int64 `json:"result_code,omitempty" ` + /* + 返回消息 + */ + Message string `json:"message,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemStoreRelationQueryResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemStoreRelationQueryResponse.go new file mode 100644 index 0000000..1d6f192 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbItemStoreRelationQueryResponse.go @@ -0,0 +1,31 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbItemStoreRelationQueryResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 分页数据 + */ + Data domain.AlibabaAlscUnionKbItemStoreRelationQueryPageModel `json:"data,omitempty" ` + /* + 返回码 + */ + ResultCode int64 `json:"result_code,omitempty" ` + /* + 返回消息 + */ + Message string `json:"message,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbOrderCreateResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbOrderCreateResponse.go new file mode 100644 index 0000000..1d2c5ee --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbOrderCreateResponse.go @@ -0,0 +1,31 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbOrderCreateResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 返回对象 + */ + Data domain.AlibabaAlscUnionKbOrderCreateOrderVoucherDto `json:"data,omitempty" ` + /* + 1 + */ + ResultCode int64 `json:"result_code,omitempty" ` + /* + success + */ + Message string `json:"message,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbOrderPayResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbOrderPayResponse.go new file mode 100644 index 0000000..c7cf5f1 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbOrderPayResponse.go @@ -0,0 +1,31 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbOrderPayResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 返回对象 + */ + Data domain.AlibabaAlscUnionKbOrderPayOrderVoucherDto `json:"data,omitempty" ` + /* + 1 + */ + ResultCode string `json:"result_code,omitempty" ` + /* + success + */ + Message string `json:"message,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbOrderQueryResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbOrderQueryResponse.go new file mode 100644 index 0000000..fd08680 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbOrderQueryResponse.go @@ -0,0 +1,31 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbOrderQueryResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 订单对象 + */ + Data domain.AlibabaAlscUnionKbOrderQueryOrderVoucherDto `json:"data,omitempty" ` + /* + 错误码 + */ + ResultCode int64 `json:"result_code,omitempty" ` + /* + 如果有错误,对应错误原因 + */ + Message string `json:"message,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbOrderRefundResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbOrderRefundResponse.go new file mode 100644 index 0000000..6328538 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbOrderRefundResponse.go @@ -0,0 +1,31 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbOrderRefundResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 返回对象 + */ + Data domain.AlibabaAlscUnionKbOrderRefundOrderVoucherDto `json:"data,omitempty" ` + /* + 1 + */ + ResultCode int64 `json:"result_code,omitempty" ` + /* + 发生错误时对应错误原因 + */ + Message string `json:"message,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbStoreItemQueryResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbStoreItemQueryResponse.go new file mode 100644 index 0000000..7db310f --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbStoreItemQueryResponse.go @@ -0,0 +1,35 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbStoreItemQueryResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 分页数据 + */ + Data domain.AlibabaAlscUnionKbStoreItemQueryPageModel `json:"data,omitempty" ` + /* + 返回码 + */ + ResultCode int64 `json:"result_code,omitempty" ` + /* + 返回消息 + */ + Message string `json:"message,omitempty" ` + /* + 错误描述 + */ + ErrorMessage string `json:"error_message,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbStoreQueryResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbStoreQueryResponse.go new file mode 100644 index 0000000..d29efa2 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbStoreQueryResponse.go @@ -0,0 +1,35 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbStoreQueryResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 分页数据 + */ + Data domain.AlibabaAlscUnionKbStoreQueryPageModel `json:"data,omitempty" ` + /* + 返回码 + */ + ResultCode int64 `json:"result_code,omitempty" ` + /* + 返回消息 + */ + Message string `json:"message,omitempty" ` + /* + 错误描述 + */ + ErrorMessage string `json:"error_message,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpaOrderDetailsGetResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpaOrderDetailsGetResponse.go new file mode 100644 index 0000000..b1a84fb --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpaOrderDetailsGetResponse.go @@ -0,0 +1,39 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbcpaOrderDetailsGetResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 订单明细列表 + */ + Result []domain.AlibabaAlscUnionKbcpaOrderDetailsGetOrderDetailReportDto `json:"result,omitempty" ` + /* + 接口正常标识 + */ + ResultSuccess bool `json:"result_success,omitempty" ` + /* + 错误描述 + */ + BizErrorDesc string `json:"biz_error_desc,omitempty" ` + /* + 当前条件下订单总量 + */ + TotalCount int64 `json:"total_count,omitempty" ` + /* + 错误码 + */ + BizErrorCode string `json:"biz_error_code,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpaPunishOrderGetResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpaPunishOrderGetResponse.go new file mode 100644 index 0000000..5fc5b84 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpaPunishOrderGetResponse.go @@ -0,0 +1,39 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbcpaPunishOrderGetResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 反作弊订单list + */ + Result []domain.AlibabaAlscUnionKbcpaPunishOrderGetPunishOrderDetailReportDTO `json:"result,omitempty" ` + /* + 接口返回是否正确 + */ + ResultSuccess bool `json:"result_success,omitempty" ` + /* + 接口错误描述 + */ + BizErrorDesc string `json:"biz_error_desc,omitempty" ` + /* + 当前查询条件下总的记录 + */ + TotalCount int64 `json:"total_count,omitempty" ` + /* + 接口错误码 + */ + BizErrorCode string `json:"biz_error_code,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpaRefundOrderGetResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpaRefundOrderGetResponse.go new file mode 100644 index 0000000..0f3bbb7 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpaRefundOrderGetResponse.go @@ -0,0 +1,35 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbcpaRefundOrderGetResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 返回维权订单list + */ + Result []domain.AlibabaAlscUnionKbcpaRefundOrderGetRefundOrderDetailReportDTO `json:"result,omitempty" ` + /* + 错误描述 + */ + BizErrorDesc string `json:"biz_error_desc,omitempty" ` + /* + 当前条件下订单列表总数 + */ + TotalCount int64 `json:"total_count,omitempty" ` + /* + 错误码 + */ + BizErrorCode string `json:"biz_error_code,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpxPositiveOrderGetResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpxPositiveOrderGetResponse.go new file mode 100644 index 0000000..479abb2 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpxPositiveOrderGetResponse.go @@ -0,0 +1,39 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbcpxPositiveOrderGetResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 所有订单list + */ + Result []domain.AlibabaAlscUnionKbcpxPositiveOrderGetOrderDetailReportDTO `json:"result,omitempty" ` + /* + 接口返回是否正确 + */ + ResultSuccess bool `json:"result_success,omitempty" ` + /* + 接口错误描述 + */ + BizErrorDesc string `json:"biz_error_desc,omitempty" ` + /* + 当前查询条件下总的记录 + */ + TotalCount int64 `json:"total_count,omitempty" ` + /* + 接口错误码 + */ + BizErrorCode int64 `json:"biz_error_code,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpxPunishOrderGetResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpxPunishOrderGetResponse.go new file mode 100644 index 0000000..b134dd9 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpxPunishOrderGetResponse.go @@ -0,0 +1,39 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbcpxPunishOrderGetResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 反作弊订单list + */ + Result []domain.AlibabaAlscUnionKbcpxPunishOrderGetPunishOrderDetailReportDTO `json:"result,omitempty" ` + /* + 接口返回是否正确 + */ + ResultSuccess bool `json:"result_success,omitempty" ` + /* + 接口错误描述 + */ + BizErrorDesc string `json:"biz_error_desc,omitempty" ` + /* + 当前查询条件下总的记录 + */ + TotalCount int64 `json:"total_count,omitempty" ` + /* + 接口错误码 + */ + BizErrorCode int64 `json:"biz_error_code,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpxRefundOrderGetResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpxRefundOrderGetResponse.go new file mode 100644 index 0000000..167c049 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionKbcpxRefundOrderGetResponse.go @@ -0,0 +1,39 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionKbcpxRefundOrderGetResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 用户维权订单list + */ + Result []domain.AlibabaAlscUnionKbcpxRefundOrderGetRefundOrderDetailReportDTO `json:"result,omitempty" ` + /* + 接口返回是否正确 + */ + ResultSuccess bool `json:"result_success,omitempty" ` + /* + 接口错误描述 + */ + BizErrorDesc string `json:"biz_error_desc,omitempty" ` + /* + 当前查询条件下总的记录 + */ + TotalCount int64 `json:"total_count,omitempty" ` + /* + 接口错误码 + */ + BizErrorCode int64 `json:"biz_error_code,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionMediaZoneAddResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionMediaZoneAddResponse.go new file mode 100644 index 0000000..4cd6ddc --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionMediaZoneAddResponse.go @@ -0,0 +1,35 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionMediaZoneAddResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 推广位信息 + */ + Result domain.AlibabaAlscUnionMediaZoneAddZoneInfoDTO `json:"result,omitempty" ` + /* + 返回成功或者失败 + */ + ResultSuccess bool `json:"result_success,omitempty" ` + /* + 业务异常 + */ + BizErrorCode int64 `json:"biz_error_code,omitempty" ` + /* + 推广位名称空 + */ + BizErrorDesc string `json:"biz_error_desc,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/AlibabaAlscUnionMediaZoneGetResponse.go b/taobao/topsdk/defaultability/response/AlibabaAlscUnionMediaZoneGetResponse.go new file mode 100644 index 0000000..b52f3e4 --- /dev/null +++ b/taobao/topsdk/defaultability/response/AlibabaAlscUnionMediaZoneGetResponse.go @@ -0,0 +1,39 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type AlibabaAlscUnionMediaZoneGetResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 接口正常标识 + */ + ResultSuccess bool `json:"result_success,omitempty" ` + /* + 错误描述 + */ + BizErrorDesc string `json:"biz_error_desc,omitempty" ` + /* + 总数量 + */ + TotalCount int64 `json:"total_count,omitempty" ` + /* + 错误码 + */ + BizErrorCode int64 `json:"biz_error_code,omitempty" ` + /* + 资源位明细列表 + */ + Result []domain.AlibabaAlscUnionMediaZoneGetZoneInfoDTO `json:"result,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/TaobaoTmcMessageProduceResponse.go b/taobao/topsdk/defaultability/response/TaobaoTmcMessageProduceResponse.go new file mode 100644 index 0000000..9690c72 --- /dev/null +++ b/taobao/topsdk/defaultability/response/TaobaoTmcMessageProduceResponse.go @@ -0,0 +1,29 @@ +package response + +import () + +type TaobaoTmcMessageProduceResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 是否成功 + */ + IsSuccess bool `json:"is_success,omitempty" ` + /* + 投递目标数 + */ + Total int64 `json:"total,omitempty" ` + /* + 消息ID + */ + MsgIds []string `json:"msg_ids,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/TaobaoTmcUserCancelResponse.go b/taobao/topsdk/defaultability/response/TaobaoTmcUserCancelResponse.go new file mode 100644 index 0000000..25dea91 --- /dev/null +++ b/taobao/topsdk/defaultability/response/TaobaoTmcUserCancelResponse.go @@ -0,0 +1,21 @@ +package response + +import () + +type TaobaoTmcUserCancelResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 是否成功,如果为false并且没有错误码,表示删除的用户不存在。 + */ + IsSuccess bool `json:"is_success,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/TaobaoTmcUserGetResponse.go b/taobao/topsdk/defaultability/response/TaobaoTmcUserGetResponse.go new file mode 100644 index 0000000..d7469da --- /dev/null +++ b/taobao/topsdk/defaultability/response/TaobaoTmcUserGetResponse.go @@ -0,0 +1,23 @@ +package response + +import ( + "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/taobao/topsdk/defaultability/domain" +) + +type TaobaoTmcUserGetResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 开通的用户数据 + */ + TmcUser domain.TaobaoTmcUserGetTmcUser `json:"tmc_user,omitempty" ` +} diff --git a/taobao/topsdk/defaultability/response/TaobaoTmcUserPermitResponse.go b/taobao/topsdk/defaultability/response/TaobaoTmcUserPermitResponse.go new file mode 100644 index 0000000..1e51a37 --- /dev/null +++ b/taobao/topsdk/defaultability/response/TaobaoTmcUserPermitResponse.go @@ -0,0 +1,21 @@ +package response + +import () + +type TaobaoTmcUserPermitResponse struct { + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` + + /* + System body + */ + Body string + + /* + 是否成功 + */ + IsSuccess bool `json:"is_success,omitempty" ` +} diff --git a/taobao/topsdk/topclient.go b/taobao/topsdk/topclient.go new file mode 100644 index 0000000..d015609 --- /dev/null +++ b/taobao/topsdk/topclient.go @@ -0,0 +1,190 @@ +package topsdk + +import ( + "bytes" + zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" + "fmt" + "io" + "io/ioutil" + "log" + "mime/multipart" + "net" + "net/http" + "net/url" + "strings" + "time" +) + +type TopClient struct { + AppKey string + AppSecret string + ServerUrl string + Format string + SignMethod string + ConnectTimeout int64 + ReadTimeout int64 + Version string + Simplify bool + httpClient *http.Client +} +type HttpTransportConfig struct { + DialTimeout int64 + KeepAlive int64 + MaxIdleConns int + MaxIdleConnsPerHost int + IdleConnTimeout int64 + MaxConnsPerHost int +} + +func NewDefaultTopClient(AppKey string, AppSecret string, ServerUrl string, connectTimeount int64, readTimeout int64) TopClient { + var httpTransportConfig = &HttpTransportConfig{ + DialTimeout: 30000, + KeepAlive: 30000, + MaxIdleConns: 100, + MaxIdleConnsPerHost: 50, + IdleConnTimeout: 30000, + } + return NewTopClientWithConfig(AppKey, AppSecret, ServerUrl, connectTimeount, readTimeout, httpTransportConfig) + +} + +func NewTopClientWithConfig(AppKey string, AppSecret string, ServerUrl string, connectTimeount int64, readTimeout int64, httpTransportConfig *HttpTransportConfig) TopClient { + httpClient := http.Client{ + Timeout: time.Duration(connectTimeount) * time.Millisecond, + Transport: &http.Transport{ + DialContext: (&net.Dialer{ + Timeout: time.Duration(httpTransportConfig.DialTimeout) * time.Millisecond, + KeepAlive: time.Duration(httpTransportConfig.KeepAlive) * time.Millisecond, + }).DialContext, + ForceAttemptHTTP2: true, + MaxIdleConns: httpTransportConfig.MaxIdleConns, + MaxIdleConnsPerHost: httpTransportConfig.MaxIdleConnsPerHost, + IdleConnTimeout: time.Duration(httpTransportConfig.IdleConnTimeout) * time.Millisecond, + TLSHandshakeTimeout: 10 * time.Second, + ExpectContinueTimeout: 1 * time.Second, + }, + } + return TopClient{ + AppKey: AppKey, + AppSecret: AppSecret, + ServerUrl: ServerUrl, + Format: ApiFormat, + SignMethod: SignMethod, + ConnectTimeout: connectTimeount, + ReadTimeout: readTimeout, + Version: TopVersion, + Simplify: true, + httpClient: &httpClient, + } +} + +func (client *TopClient) ExecuteWithSession(method string, data map[string]interface{}, fileData map[string]interface{}, session string) (string, error) { + var publicParam = make(map[string]interface{}) + publicParam["method"] = method + publicParam["app_key"] = client.AppKey + publicParam["timestamp"] = time.Now().Format(DateFormat) + publicParam["v"] = client.Version + publicParam["sign_method"] = client.SignMethod + publicParam["format"] = client.Format + publicParam["simplify"] = client.Simplify + publicParam["partner_id"] = SdkVersion + if session != "" { + publicParam["session"] = session + } + sign := zhios_third_party_utils.GetSign(publicParam, data, client.AppSecret) + // 构建url + serverUrl, _ := url.Parse(client.ServerUrl) + urlValues := url.Values{} + urlValues.Add("sign", sign) + for k, v := range publicParam { + urlValues.Add(k, fmt.Sprint(v)) + } + serverUrl.RawQuery = urlValues.Encode() + urlPath := serverUrl.String() + // 构建body + if fileData != nil && len(fileData) > 0 { + return doPostWithFile(urlPath, data, fileData, client.httpClient) + } else { + return doPost(urlPath, data, client.httpClient) + } + +} + +func doPost(urlPath string, data map[string]interface{}, httpClient *http.Client) (string, error) { + bodyParam := url.Values{} + for k, v := range data { + bodyParam.Add(k, fmt.Sprint(v)) + } + resp, err := httpClient.Post(urlPath, "application/x-www-form-urlencoded", strings.NewReader(bodyParam.Encode())) + if resp != nil { + defer resp.Body.Close() + } + if err != nil { + log.Println("http.PostForm error", err) + return "", err + } + body, err := ioutil.ReadAll(resp.Body) + if err != nil { + log.Println("ioutil.ReadAll", err) + return "", err + } + return string(body), nil +} + +func doPostWithFile(urlPath string, data map[string]interface{}, fileData map[string]interface{}, httpClient *http.Client) (string, error) { + bodyBuf := &bytes.Buffer{} + writer := multipart.NewWriter(bodyBuf) + for k, v := range data { + err := writer.WriteField(k, fmt.Sprint(v)) + if err != nil { + return "", err + } + } + for k, v := range fileData { + value, ok := v.([]byte) + if ok { + fileWriter, err := writer.CreateFormFile(k, "file") + if err != nil { + return "", err + } + _, err = io.Copy(fileWriter, bytes.NewReader(value)) + if err != nil { + return "", err + } + } else { + value, ok := v.(zhios_third_party_utils.FileItem) + if ok { + fileWriter, err := writer.CreateFormFile(k, value.FileName) + if err != nil { + return "", err + } + _, err = io.Copy(fileWriter, bytes.NewReader(value.Content)) + if err != nil { + return "", err + } + } + } + } + + err := writer.Close() + if err != nil { + return "", err + } + + resp, err := httpClient.Post(urlPath, writer.FormDataContentType(), bodyBuf) + if err != nil { + log.Println("http.PostForm error", err) + return "", err + } + defer resp.Body.Close() + body, err := ioutil.ReadAll(resp.Body) + if err != nil { + log.Println("ioutil.ReadAll", err) + return "", err + } + return string(body), nil +} + +func (client *TopClient) Execute(method string, data map[string]interface{}, fileData map[string]interface{}) (string, error) { + return client.ExecuteWithSession(method, data, fileData, "") +} diff --git a/tik_tok/svc_tik_tok_team.go b/tik_tok/svc_tik_tok_team.go index 19bca5e..b3d2927 100644 --- a/tik_tok/svc_tik_tok_team.go +++ b/tik_tok/svc_tik_tok_team.go @@ -35,6 +35,49 @@ func Activity(args map[string]string) []TikTokActivity { return goodsList } +func TrusteeshipProduct(args map[string]string) ([]TikTokGoods, int64) { + //args = map[string]string{ + // "appkey": "7136155008692651560", + // "appSecret": "b132549f-f62c-491e-86f1-89af3658896a", + // "activity_id": "437153", + // "search_type": "0", + // "sort_type": "1", + // "page": "1", + // "page_size": "20", + // "count": "1", + // "product_info": "3448990760731595786", + // "status": "1", + // "retrieve_mode": "0", + // "acctoken": "d67db7b0-1305-42f1-b378-bf583a6a5b48", + //} + params := map[string]interface{}{"status": args["status"], "page_size": args["page_size"], "page": args["page"], "retrieve_mode": args["retrieve_mode"]} + params["status"] = "1" + send, err := Send(args["appkey"], args["appSecret"], "buyin.colonel/trusteeshipList", params, args["acctoken"]) + fmt.Println(send) + fmt.Println(err) + var goodsList = make([]TikTokGoods, 0) + product := gjson.Get(send, "data.data").String() + if err != nil || product == "" { + return goodsList, 0 + } + var lmData struct { + Data struct { + Data []TikTokGoodsLm `json:"data"` + Total int64 `json:"total"` + } `json:"data"` + } + err = json.Unmarshal([]byte(send), &lmData) + if err != nil { + return goodsList, 0 + } + for _, v := range lmData.Data.Data { + tmp := CommGoodsDetail(v) + goodsList = append(goodsList, tmp) + } + fmt.Println(string(zhios_third_party_utils.Serialize(goodsList))) + return goodsList, lmData.Data.Total +} + func ActivityProduct(args map[string]string) ([]TikTokGoods, int64) { //args = map[string]string{ // "appkey": "7136155008692651560", diff --git a/tik_tok/tik_tok_kol.go b/tik_tok/tik_tok_kol.go new file mode 100644 index 0000000..15e70b0 --- /dev/null +++ b/tik_tok/tik_tok_kol.go @@ -0,0 +1,53 @@ +package tik_tok + +import zhios_third_party_utils "code.fnuoos.com/go_rely_warehouse/zyos_go_third_party_api.git/utils" + +//达人橱窗 +//https://buyin.jinritemai.com/dashboard/service-provider/doc-center +//https://developer.open-douyin.com/docs/resource/zh-CN/dop/develop/openapi/account-permission/get-access-token +var clientKey = "awxen1ub0ipjum5s" +var clientSecret = "f0eb041ad451bd3a943976079864246d" + +//获取 access_token +func GetKolAuthAccessToken(code string) (string, error) { + args := map[string]string{ + "client_key": clientKey, + "client_secret": clientSecret, + "code": code, + "grant_type": "authorization_code", + } + post, err := zhios_third_party_utils.CurlPost("https://open.douyin.com/oauth/access_token/", args, nil) + return string(post), err +} + +//刷新 access_token +func RefreshKolAuthAccessToken(refreshToken string) (string, error) { + args := map[string]string{ + "client_key": clientKey, + "refresh_token": refreshToken, + "grant_type": "refresh_token", + } + post, err := zhios_third_party_utils.CurlPost("https://open.douyin.com/oauth/refresh_token/", args, nil) + return string(post), err +} + +//刷新 refresh_token +func RefreshKolAuthRefreshAccessToken(refreshToken string) (string, error) { + args := map[string]string{ + "client_key": clientKey, + "refresh_token": refreshToken, + } + post, err := zhios_third_party_utils.CurlPost("https://open.douyin.com/oauth/renew_refresh_token/", args, nil) + return string(post), err +} + +//生成 client_token +func CreateKolAuthClientToken(refreshToken string) (string, error) { + args := map[string]string{ + "client_key": clientKey, + "client_secret": clientSecret, + "grant_type": "client_credential", + } + post, err := zhios_third_party_utils.CurlPost("https://open.douyin.com/oauth/renew_refresh_token/", args, nil) + return string(post), err +} diff --git a/tik_tok/tik_tok_test.go b/tik_tok/tik_tok_test.go index b6ba3c2..09d0038 100644 --- a/tik_tok/tik_tok_test.go +++ b/tik_tok/tik_tok_test.go @@ -13,5 +13,5 @@ func TestGoods(t *testing.T) { "appkey": "7136155008692651560", "appSecret": "b132549f-f62c-491e-86f1-89af3658896a", } - TeamOrder(args) + TrusteeshipProduct(args) } diff --git a/utils/FileItem.go b/utils/FileItem.go new file mode 100644 index 0000000..9611880 --- /dev/null +++ b/utils/FileItem.go @@ -0,0 +1,20 @@ +package zhios_third_party_utils + +type FileItem struct { + FileName string + + Content []byte +} + +func (s *FileItem) SetFileName(v string) *FileItem { + s.FileName = v + return s +} +func (s *FileItem) SetContent(v []byte) *FileItem { + s.Content = v + return s +} + +func NewFileItem(fileName string, content []byte) *FileItem { + return &FileItem{FileName: fileName, Content: content} +} diff --git a/utils/TopApiRequestError.go b/utils/TopApiRequestError.go new file mode 100644 index 0000000..c503b7c --- /dev/null +++ b/utils/TopApiRequestError.go @@ -0,0 +1,34 @@ +package zhios_third_party_utils + +import "fmt" + +type TopApiRequestError struct { + /* + System code + */ + TopCode int `json:"code,omitempty" ` + + /* + System error message + */ + Msg string `json:"msg,omitempty" ` + + /* + System sub code + */ + SubCode string `json:"sub_code,omitempty" ` + + /* + System sub message + */ + SubMsg string `json:"sub_msg,omitempty" ` + + /* + System request id + */ + RequestId string `json:"request_id,omitempty" ` +} + +func (e *TopApiRequestError) Error() string { + return fmt.Sprintf("code: %d, msg: %s, sub_code: %s, sub_msg: %s ,request_id: %s", e.TopCode, e.Msg, e.SubCode, e.SubMsg, e.RequestId) +} diff --git a/utils/md5.go b/utils/md5.go new file mode 100644 index 0000000..ca406da --- /dev/null +++ b/utils/md5.go @@ -0,0 +1,12 @@ +package zhios_third_party_utils + +import ( + "crypto/md5" + "encoding/hex" +) + +func Md5(str string) string { + h := md5.New() + h.Write([]byte(str)) + return hex.EncodeToString(h.Sum(nil)) +} diff --git a/utils/util.go b/utils/util.go new file mode 100644 index 0000000..29bd029 --- /dev/null +++ b/utils/util.go @@ -0,0 +1,114 @@ +package zhios_third_party_utils + +import ( + "crypto/hmac" + "crypto/sha256" + "encoding/hex" + "encoding/json" + "fmt" + "sort" + "strings" + "time" +) + +type LocalTime time.Time + +const ( + TimeFormat = "2006-01-02 15:04:05" +) + +func (t *LocalTime) UnmarshalJSON(data []byte) (err error) { + // 空值不进行解析 + if len(data) == 2 { + *t = LocalTime(time.Time{}) + return + } + now, err := time.ParseInLocation(`"`+TimeFormat+`"`, string(data), time.Local) + *t = LocalTime(now) + return +} + +func (t LocalTime) MarshalJSON() ([]byte, error) { + b := make([]byte, 0, len(TimeFormat)+2) + b = append(b, '"') + b = time.Time(t).AppendFormat(b, TimeFormat) + b = append(b, '"') + return b, nil +} + +func (t LocalTime) String() string { + return time.Time(t).Format(TimeFormat) +} + +func UnmarshalJSON(data []byte, v interface{}) (err error) { + return json.Unmarshal(data, v) +} + +func ConvertStructList(data interface{}) string { + if data == nil { + return "[]" + } + jsonStr, _ := json.Marshal(data) + return string(jsonStr) +} + +func ConvertStruct(data interface{}) string { + if data == nil { + return "{}" + } + jsonStr, _ := json.Marshal(data) + return string(jsonStr) +} + +func ConvertBasicList(data interface{}) string { + if data == nil { + return "[]" + } + return strings.Replace(strings.Trim(fmt.Sprint(data), "[]"), " ", ",", -1) +} + +func HandleJsonResponse(jsonStr string, v interface{}) (err error) { + + if strings.Contains(jsonStr[0:20], "error_response") { + err := &TopApiRequestError{} + jsonStr = jsonStr[18 : len(jsonStr)-1] + err2 := json.Unmarshal([]byte(jsonStr), err) + if err2 != nil { + return err2 + } + return err + } + return json.Unmarshal([]byte(jsonStr), v) +} + +func GetSign(publicParam map[string]interface{}, data map[string]interface{}, secret string) string { + var allParamMap = make(map[string]interface{}) + for k, v := range data { + allParamMap[k] = v + } + for k, v := range publicParam { + allParamMap[k] = v + } + var keyList []string + for k := range allParamMap { + keyList = append(keyList, k) + } + sort.Strings(keyList) + var signStr = "" + for _, key := range keyList { + value := allParamMap[key] + signStr = signStr + fmt.Sprintf("%v%v", key, value) + //if(value != ""){ + // signStr = signStr + fmt.Sprintf("%v%v", key, value) + //} + } + fmt.Println(signStr) + sign := strings.ToUpper(HmacSha256(signStr, secret)) + return sign +} + +func HmacSha256(data string, secret string) string { + h := hmac.New(sha256.New, []byte(secret)) + h.Write([]byte(data)) + return hex.EncodeToString(h.Sum(nil)) +}